.item-agency {
    display: flex;
    flex-direction: column;
    width: calc(50% - 12px);
    padding: 24px;
    margin-bottom: 24px;
    background: var(--se-main-color-grey);
    border: 1px solid var(--se-stroke-color);
    border-radius: 5px;
    gap: 24px;
}

.item-agency__top-image {
    position: relative;
    display: flex;
    align-items: center;
    width: 84px;
    height: 84px;
    padding: 12px;
    margin-right: 24px;
    background-color: #fff;
    border: 1px solid var(--se-stroke-color);
    border-radius: 5px;
}

.item-agency__top-image img {
    max-height: 100%;
    margin: 0 auto;
}

.item-agency__top {
    display: flex;
    justify-content: space-between;
}

.item-agency__top-wrapper {
    display: flex;
    align-items: center;
}

.item-agency_featured .item-agency__top-score-wrapper {
    display: none;
}

.item-agency__top-score-wrapper {
    position: relative;
    height: max-content;
}

.archive .hint_pop {
    z-index: 99;
    padding: 12px;
    font-size: 12px;
    background: var(--se-text-color);
    border-radius: 5px;
    box-shadow: 0 2px 4px 2px rgba(29, 29, 38, .1);
}

.archive .hint_pop p {
    color: #fff;
}

.item-agency__top-score-wrapper.hint_trigger {
    z-index: 2;
}

.item-agency__top-score-wrapper svg {
    display: block;
    width: 48px;
    height: 48px;
}

.item-agency__top-score-wrapper .color-line {
    --svg-length: 226px;
    stroke-dashoffset: var(--svg-length);
    stroke-dasharray: var(--svg-length);
}

.item-agency__top-score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: var(--se-heading-color);
    transform: translate(-50%, -50%);
}

.item-agency__top-title {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 20px;
    font-weight: 600;
}

.item-agency__profile-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.item-agency__top-badges {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.item-agency__top-featured,
.item-agency__top-certified {
    display: flex;
    gap: 4px;
    align-items: center;
    width: fit-content;
    padding: 2px 8px 2px;
    margin-bottom: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--se-heading-color, #1d1d26);
    border-radius: 5px;
    line-height: 16px;
}

.item-agency__top-featured {
    background: rgba(39, 174, 96, 0.08);
    border: 1px solid rgba(39, 174, 96, 0.20);
}

.item-agency__top-certified {
    border: 1px solid rgba(24, 99, 253, 0.20);
    background: rgba(24, 99, 253, 0.10);
}

.item-agency__top-featured-icon,
.item-agency__top-certified-icon {
    height: 14px;
    width: 14px;
    text-align: center;
}

.item-agency__top-link {
    display: flex;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: var(--se-accent-blue);
}

.item-agency__top-link-icon {
    display: flex;
    align-items: center;
    width: 0;
    transition: width .24s ease;
}

.item-agency__text {
    font-size: 16px;
    line-height: 22px;
    color: var(--se-text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-height: calc(22px * 4);

    @supports (-webkit-line-clamp: 4) {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
}

.item-agency__items {
    padding-bottom: 8px;
}

.item-agency__item-right,
.item-agency__item-left,
.item-agency__item {
    display: flex;
}

.item-agency__item-left svg {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.item-agency__item-left {
    min-width: 130px;
}

.item-agency__item {
    margin-bottom: 4px;
}

.item-agency__item-right-number {
    width: 30px;
    margin-left: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: var(--se-text-color-disabled);
}

.item-agency__item-left-text {
    font-size: 16px;
    line-height: 22px;
    color: var(--se-text-color);
}

.item-agency__item-right-text {
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--se-heading-color);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (min-width: 1200px) {
    .item-agency:hover {
        border: 1px solid var(--se-accent-blue);
    }

    .item-agency:hover .item-agency__top-link-icon {
        width: 22px;
    }
}

@media screen and (max-width: 991px) {
    .item-agency {
        width: 100%;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 767px) {
    .item-agency_featured .item-agency__text {
        padding-top: 25px;
    }

    .item-agency__top {
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .item-agency_featured .item-agency__top {
        position: relative;
    }

    .item-agency__top-right {
        position: relative;
    }

    .item-agency__top-badges {
        position: absolute;
        bottom: -46px;
        left: 0;
    }

    .item-agency__top-featured, .item-agency__top-certified {
        font-size: 11px;
    }

    .item-agency__top-featured {
        min-width: 118px;
    }

    .item-agency__top-certified {
        min-width: 137px;
    }

    .item-agency {
        padding: 20px;
        margin-bottom: 0;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
        gap: 20px;
    }

    .item-agency:last-of-type {
        border-bottom: 1px solid var(--se-stroke-color)
    }

    .item-agency__top-image {
        width: 60px;
        height: 60px;
        margin-right: 16px;
    }

    .item-agency__top-title {
        font-size: 18px;
    }

    .item-agency__items {
        padding-bottom: 0;
    }

    .item-agency__item-left svg {
        display: none;
    }

    .item-agency__item {
        flex-wrap: wrap;
    }

    .item-agency__item-left {
        min-width: 100%;
    }

    .item-agency__item-right-text {
        line-height: 22px;
    }

    .item-agency__item-left-text {
        margin-top: 5px;
    }

    .item-agency__item:first-child .item-agency__item-left-text {
        margin-top: 0;
    }

    .item-agency__top-link svg {
        margin-left: 5px;
    }

    .item-agency__item-right-text {
        width: calc(100% - 38px);
    }

    .item-agency__text {
        font-size: 16px;
        line-height: 22px;
        color: var(--se-text-color);
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        max-height: calc(22px * 3);

        @supports (-webkit-line-clamp: 3) {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
        }
    }
}