/* ==========================================================
   Блок "Услуги" — ЛБР Дизель
   Путь: /local/templates/universesite_s1/components/
         intec.universe/main.services/template.custom/style.css
   ========================================================== */

.lbr-sv {
    padding: 0;
    background: #fff;
}

/* ── Контейнер ─────────────────────────────────────────── */
.lbr-sv__container {
    max-width: 1344px;
    margin: 0 auto;
    width: 100%;
}

/* ── Заголовок блока ────────────────────────────────────── */
.lbr-sv__title {
    font-size: 36px;
    font-weight: 800;
    color: #1B2B58;
    line-height: 1.15;
    margin: 0 0 28px;
}

/* ── Сетка карточек ─────────────────────────────────────── */
.lbr-sv__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Карточка ───────────────────────────────────────────── */
.lbr-sv__card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    text-decoration: none !important;
    color: #fff;
    cursor: pointer;
}

/* Фото-фон */
.lbr-sv__card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.lbr-sv__card:hover .lbr-sv__card-bg {
    transform: scale(1.07);
}

/* Тёмный градиентный оверлей */
.lbr-sv__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 20, 60, 0.88) 0%,
        rgba(10, 20, 60, 0.30) 52%,
        rgba(10, 20, 60, 0.05) 100%
    );
    transition: background 0.35s ease;
}

.lbr-sv__card:hover .lbr-sv__card-overlay {
    background: linear-gradient(
        to top,
        rgba(10, 20, 60, 0.94) 0%,
        rgba(10, 20, 60, 0.42) 55%,
        rgba(10, 20, 60, 0.08) 100%
    );
}

/* ── Иконка (левый верхний угол) ────────────────────────── */
.lbr-sv__card-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 43, 88, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: background 0.25s ease;
}

.lbr-sv__card:hover .lbr-sv__card-icon {
    background: rgba(27, 43, 88, 0.9);
}

.lbr-sv__card-icon svg {
    width: 20px;
    height: 20px;
}

/* ── Нижняя часть: текст + стрелка ─────────────────────── */
.lbr-sv__card-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.lbr-sv__card-body {
    flex: 1;
    min-width: 0;
}

.lbr-sv__card-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 6px;
}

.lbr-sv__card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
    margin: 0;
}

/* ── Стрелка (кружок справа) ────────────────────────────── */
.lbr-sv__card-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.lbr-sv__card-arrow svg {
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

.lbr-sv__card:hover .lbr-sv__card-arrow {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.35);
}

.lbr-sv__card:hover .lbr-sv__card-arrow svg {
    transform: translateX(3px);
}

/* ── Адаптив: планшет ───────────────────────────────────── */
@media (max-width: 960px) {
    .lbr-sv__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ── Адаптив: мобильный ─────────────────────────────────── */
@media (max-width: 580px) {
    .lbr-sv__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lbr-sv__card {
        aspect-ratio: 16 / 9;
    }
}
