/* =========================================================
   SNG-IT / Похожие шаблоны
   Полностью автономная верстка. Bootstrap/Slick не требуется.
   ========================================================= */

.sng-related,
.sng-related * {
    box-sizing: border-box;
}

.sng-related {
    width: 100%;
    min-width: 0;
    margin: 48px 0 0;
}

.sng-related__header {
    margin: 0 0 22px;
}

.sng-related__title {
    margin: 0 0 7px;
    color: #151c24;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.sng-related__subtitle {
    max-width: 760px;
    color: #73808c;
    font-size: 15px;
    line-height: 1.5;
}

.sng-related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    min-width: 0;
}

.sng-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6ec;
    border-radius: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sng-related-card:hover {
    border-color: #c4d4e0;
    box-shadow: 0 8px 24px rgba(21, 51, 78, .08);
}

.sng-related-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 205px;
    min-width: 0;
    padding: 12px;
    overflow: hidden;
    background: #f6f8fa;
    text-decoration: none;
}

.sng-related-card__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.sng-related-card__no-image {
    color: #9aa5ae;
    font-size: 13px;
}

.sng-related-card__discount {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    color: #fff;
    background: #e94242;
    border-radius: 7px;
    box-shadow: 0 3px 9px rgba(190, 30, 30, .13);
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.sng-related-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 16px 18px 18px;
}

.sng-related-card__article {
    margin: 0 0 7px;
    color: #939ea8;
    font-size: 12px;
    line-height: 1.35;
}

.sng-related-card__name {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: #222c35;
    font-size: 16px;
    line-height: 1.42;
    font-weight: 600;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color .2s ease;
}

.sng-related-card__name:hover,
.sng-related-card__name:focus {
    color: #00569c;
    text-decoration: none;
}

.sng-related-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 24px;
}

.sng-related-card__prices {
    min-width: 0;
}

.sng-related-card__price {
    color: #17202a;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    white-space: nowrap;
}

.sng-related-card__old-price {
    margin-top: 4px;
    color: #9ca5ad;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: line-through;
    white-space: nowrap;
}

.sng-related-card__arrow {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #00569c;
    background: #fff;
    border: 1px solid #d3dfe8;
    border-radius: 50%;
    font-size: 19px;
    line-height: 1;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.sng-related-card__arrow:hover,
.sng-related-card__arrow:focus {
    color: #fff;
    background: #00569c;
    border-color: #00569c;
    text-decoration: none;
}

@media (max-width: 991px) {
    .sng-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .sng-related {
        margin-top: 36px;
    }

    .sng-related__header {
        margin-bottom: 17px;
    }

    .sng-related__title {
        font-size: 23px;
    }

    .sng-related__subtitle {
        font-size: 14px;
    }

    .sng-related__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sng-related-card__media {
        height: 190px;
    }

    .sng-related-card__content {
        padding: 14px 15px 16px;
    }

    .sng-related-card__footer {
        padding-top: 18px;
    }
}

@media (max-width: 420px) {
    .sng-related-card__media {
        height: 175px;
        padding: 9px;
    }

    .sng-related-card__discount {
        top: 9px;
        left: 9px;
    }
}
