.hc-progress {
    --hc-progress-bg: #efebe5;
    --hc-progress-page: #fefcf9;
    --hc-progress-text: #1f1911;
    --hc-progress-muted: #423a2e;
    --hc-progress-line: #bfb7ac;
    --hc-progress-active-line-soft: #d5d2cd;
    --hc-progress-primary: #ff5500;
    position: relative;
    width: 100%;
    color: var(--hc-progress-text);
    font-family: Onest, Arial, sans-serif;
}

.hc-progress * {
    box-sizing: border-box;
}

.hc-progress__desktop {
    display: none;
}

.hc-progress__mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 0 0 20px 20px;
    background: var(--hc-progress-bg);
}

.hc-progress__mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
}

.hc-progress__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 40px;
}

.hc-progress__title {
    margin: 0;
    color: var(--hc-progress-text);
    font-size: 2rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0;
}

.hc-progress__description {
    width: 95%;
    margin: 0;
    color: var(--hc-progress-muted);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5rem;
    letter-spacing: 0;
}

.hc-progress__mobile-stage {
    position: relative;
    display: grid;
    min-height: 436px;
    max-height: 436px;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
    gap: 20px;
    overflow: hidden;
}

.hc-progress__fade {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 10;
    height: 60px;
    pointer-events: none;
}

.hc-progress__fade--top {
    top: 0;
    background: linear-gradient(to bottom, #eceae6, rgba(236, 234, 230, 0));
}

.hc-progress__fade--bottom {
    bottom: 0;
    background: linear-gradient(to top, #eceae6, rgba(236, 234, 230, 0));
}

.hc-progress__selected {
    display: flex;
    flex-direction: column;
    height: 436px;
    align-items: flex-start;
    justify-content: center;
}

.hc-progress__selected h3 {
    margin: 0;
    color: var(--hc-progress-text);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25rem;
    letter-spacing: 0;
}

.hc-progress__mobile-action {
    display: flex;
    height: 436px;
    align-items: center;
    min-width: 0;
}

.hc-progress__see-button {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 18px 0;
    color: var(--hc-progress-primary);
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25rem;
    letter-spacing: 0;
    cursor: pointer;
}

.hc-progress__see-button span {
    position: relative;
    display: inline-flex;
    min-width: 0;
    width: fit-content;
    white-space: nowrap;
}

.hc-progress__see-button span::after {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 0;
    height: 2px;
    content: "";
    background: var(--hc-progress-primary);
    transition: width 300ms ease;
}

.hc-progress__see-button:hover span::after {
    width: 100%;
}

.hc-progress__see-button i {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.hc-progress-timeline {
    position: relative;
    min-width: 0;
}

.hc-progress-timeline--mobile {
    z-index: 1;
    width: 100%;
    max-height: 436px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.hc-progress-timeline--mobile::-webkit-scrollbar,
.hc-progress-timeline--desktop::-webkit-scrollbar {
    display: none;
}

.hc-progress-timeline__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hc-progress-timeline__line-block {
    flex: 0 0 auto;
    width: 1px;
    background: var(--hc-progress-line);
}

.hc-progress-timeline__line-block--34 {
    height: 34px;
}

.hc-progress-timeline__line-block--64 {
    height: 64px;
}

.hc-progress-timeline__dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--hc-progress-line);
}

.hc-progress-timeline__year,
.hc-progress-timeline__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hc-progress-timeline__year-label {
    margin: 0;
    color: #7b6f5e;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    letter-spacing: 0;
}

.hc-progress-timeline__line {
    flex: 0 0 auto;
    width: 1px;
    height: 30px;
    background: var(--hc-progress-line);
}

.hc-progress-timeline__button {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background-color: #bfb7ac;
    background-position: center;
    scroll-snap-align: center;
    padding: 0;
    color: var(--hc-progress-page);
    cursor: pointer;
    outline: 0 solid transparent;
    transition: all 200ms linear;
}

.hc-progress-timeline__button span {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(191, 183, 172, 0.8);
    color: var(--hc-progress-page);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    letter-spacing: 0;
    transition: all 200ms linear;
}

.hc-progress-timeline__button.is-active {
    width: 64px;
    height: 64px;
    outline: 2px solid var(--hc-progress-primary);
    outline-offset: 4px;
}

.hc-progress-timeline__button.is-active span {
    width: 64px;
    height: 64px;
    background: rgba(255, 85, 0, 0.4);
    font-size: 1.125rem;
    line-height: 1.5rem;
}

.hc-progress-timeline__item:has(.hc-progress-timeline__button.is-active) .hc-progress-timeline__line--top {
    margin-bottom: 4px;
    background: linear-gradient(to top, var(--hc-progress-primary), var(--hc-progress-active-line-soft));
}

.hc-progress-timeline__item:has(.hc-progress-timeline__button.is-active) .hc-progress-timeline__line--bottom {
    margin-top: 4px;
    background: linear-gradient(to bottom, var(--hc-progress-primary), var(--hc-progress-line));
}

.hc-progress-carousel {
    position: relative;
    display: flex;
    height: 600px;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--hc-progress-line);
}

.hc-progress-carousel__track,
.hc-progress-modal__track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 400ms ease-in-out;
}

.hc-progress-carousel__slide,
.hc-progress-modal__slide {
    height: 100%;
    min-width: 100%;
}

.hc-progress-carousel__slide img,
.hc-progress-modal__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hc-progress-carousel__shade {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: width 700ms ease, opacity 700ms ease;
}

.hc-progress-carousel__shade--left {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}

.hc-progress-carousel__shade--right {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
}

.hc-progress-carousel:hover .hc-progress-carousel__shade {
    width: 30%;
    opacity: 1;
}

.hc-progress-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: -1;
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--hc-progress-page);
    padding: 12px;
    color: var(--hc-progress-text);
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition: left 700ms ease, right 700ms ease, opacity 700ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hc-progress-carousel__arrow:disabled {
    display: none;
}

.hc-progress-carousel__arrow--prev {
    left: -80px;
}

.hc-progress-carousel__arrow--next {
    right: -80px;
}

.hc-progress-carousel:hover .hc-progress-carousel__arrow--prev {
    z-index: 20;
    left: 20px;
    opacity: 1;
}

.hc-progress-carousel:hover .hc-progress-carousel__arrow--next {
    z-index: 20;
    right: 20px;
    opacity: 1;
}

.hc-progress-carousel__arrow:hover {
    background: #e7e2da;
}

.hc-progress-carousel__arrow:active {
    background: var(--hc-progress-page);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hc-progress-carousel__arrow i {
    font-size: 28px;
    line-height: 1;
}

.hc-progress-carousel__dots {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 10px;
    background: rgba(31, 25, 17, 0.3);
    padding: 6px;
}

.hc-progress-carousel__dots span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.hc-progress-carousel__dots span.is-active {
    background: #fff;
}

.hc-progress-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    width: 100vw;
    height: 100%;
    background: #fff;
}

.hc-progress-modal.is-open {
    display: flex;
}

.hc-progress-modal__carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hc-progress-modal__gradient {
    position: absolute;
    right: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
}

.hc-progress-modal__gradient--top {
    top: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.hc-progress-modal__gradient--bottom {
    bottom: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.hc-progress-modal__top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 30px;
}

.hc-progress-modal__bars {
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 0 12px;
}

.hc-progress-modal__bar {
    position: relative;
    display: block;
    height: 3px;
    flex: 1 1 0;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.hc-progress-modal__bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: inherit;
    background: #fff;
}

.hc-progress-modal__bar.is-complete span {
    width: 100%;
}

.hc-progress-modal__bar.is-active span {
    animation: hc-progress-story 3000ms linear forwards;
}

.hc-progress-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 12px;
}

.hc-progress-modal__header h2 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.75rem;
    letter-spacing: 0;
}

.hc-progress-modal__close {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.hc-progress-modal__close i {
    font-size: 24px;
    line-height: 1;
}

.hc-progress-modal__zone {
    position: absolute;
    top: 120px;
    bottom: 112px;
    z-index: 20;
    width: 50%;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hc-progress-modal__zone--prev {
    left: 0;
}

.hc-progress-modal__zone--next {
    right: 0;
}

.hc-progress-modal__bottom {
    position: absolute;
    right: 0;
    bottom: 36px;
    left: 0;
    z-index: 30;
    padding: 0 12px;
}

.hc-progress-modal__consult {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--hc-progress-primary);
    padding: 18px 40px;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25rem;
    letter-spacing: 0;
    cursor: pointer;
}

.hc-progress-modal__consult i {
    font-size: 20px;
    line-height: 1;
}

@keyframes hc-progress-story {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .hc-progress__mobile {
        display: none;
    }

    .hc-progress__desktop {
        display: flex;
        align-items: center;
        gap: 40px;
        border-radius: 20px;
        background: var(--hc-progress-bg);
        padding: 0 40px;
    }

    .hc-progress__main {
        display: grid;
        width: 100%;
        height: 890px;
        align-items: center;
        gap: 40px;
        padding: 56px 0;
    }

    .hc-progress__content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .hc-progress__intro {
        padding: 0;
    }

    .hc-progress__intro--desktop {
        align-items: flex-start;
        gap: 32px;
        text-align: left;
    }

    .hc-progress__title--desktop {
        font-size: 3rem;
        line-height: 3.5rem;
    }

    .hc-progress__description--desktop {
        width: 85%;
    }

    .hc-progress-timeline--desktop {
        display: flex;
        width: 10%;
        height: 890px;
        max-height: 890px;
        flex: 0 0 10%;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    .hc-progress-timeline__inner--desktop {
        min-width: 100%;
        flex-direction: column;
    }
}
