/* ===== Нижняя секция (SEO + логотипы + отзывы) ===== */

.sp-bottom {
    padding: 8px 0 64px;
    background-color: #f7f7f7;
    overflow-x: hidden;
}

.sp-bottom__inner {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

/* --- Текст --- */

.sp-bottom__intro {
    max-width: 1200px;
    margin-bottom: 28px;
}

.sp-bottom__title {
    font-size: 24px;
    font-weight: 600;
    text-align: left;

    margin: 0 0 32px;

    color: #434343;


}

.sp-bottom__text {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.1;
    color: #181818;
    padding: 5px;
}

.sp-bottom__subtitle {
    margin: 0 0 8px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
    color: #111;
}

/* --- Наши клиенты: 2 ряда бегущих логотипов --- */

.sp-bottom__clients {
    margin-bottom: 32px;
}

.sp-bottom__clients-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    /* margin-bottom: 10px; */
}

.sp-bottom__clients-note {
    margin: 0;
    font-size: 12px;
    color: #777;
}

.sp-bottom__logos-marquee {
    border-radius: 4px;
    border: 1px solid #e3e3e3;
    background-color: #ffffff;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    color: #393939;
}

/* один ряд логотипов */

.sp-bottom__logos-row {
    position: relative;
    height: 40px;
    /* фиксированная высота строки */
    overflow: hidden;
}

/* трек: абсолютный, ширина по контенту, страница не растягивается */

.sp-bottom__logos-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    will-change: transform;
}

/* две группы внутри трека: каждая = один полный цикл логотипов
   min-width: 100vw — ширина одной группы >= ширины окна, чтобы не было дыр */

.sp-bottom__logos-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-width: 100vw;
    flex-shrink: 0;
    gap: 15px;
}

.sp-bottom__logo-item {
    flex: 0 0 auto;
    display: flex;
    gap: 7px;
    align-items: center;
    font-family: "verdana", sans-serif;

}

.sp-bottom__logo-item img {
    display: block;
    max-height: 26px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.2);
    opacity: 0.9;
}

.sp-bottom__logo-item-b {
    flex: 0 0 auto;
    display: flex;
    gap: 7px;
    align-items: center;
    font-family: "verdana", sans-serif;

}

.sp-bottom__logo-item-b img {
    display: block;

    width: 120px;
    margin: 15px;

    object-fit: contain;
    filter: grayscale(0.2);
    opacity: 0.9;
}

/* анимации: верхний ряд влево, нижний вправо */

.sp-bottom__logos-track--left {
    animation: sp-bottom-marquee-left 26s linear infinite;
}

.sp-bottom__logos-track--right {
    animation: sp-bottom-marquee-right 30s linear infinite;
}

@keyframes sp-bottom-marquee-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* минус ширина одной группы */
}

@keyframes sp-bottom-marquee-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* --- Отзывы (стиль Яндекс, mobile-first) --- */

.sp-bottom__reviews {
    margin-top: 4px;
}

.sp-bottom__reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.sp-review-card {
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid #e3e3e3;
    padding: 12px 12px 14px;
    font-size: 13px;
    color: #333;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.sp-review-card__top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.sp-review-card__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #777;
    flex-shrink: 0;
}

.sp-review-card__header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-review-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.sp-review-card__meta {
    font-size: 12px;
    color: #888;
}

.sp-review-card__rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.sp-review-card__stars {
    font-size: 12px;
    color: #ffb400;
}

.sp-review-card__date {
    font-size: 11px;
    color: #999;
}

.sp-review-card__text {
    margin: 0 0 6px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #525252;
    font-family: "verdana", sans-serif;
}

.sp-review-card__source {
    font-size: 13px;
    color: #555;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
}

.sp-review-card:hover {
    border-color: #ffc20e;
    background-color: #fffef5;
}

/* ===== Адаптив (mobile-first) ===== */

/* ≥480px */

@media (min-width: 480px) {
    .sp-bottom__title {
        font-size: 22px;
    }
}

/* ≥640px — 2 отзыва в ряд */

@media (min-width: 640px) {
    .sp-bottom__inner {
        padding: 0 12px;
    }

    .sp-bottom__reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* ≥900px — 3 отзыва, крупнее логотипы */

@media (min-width: 900px) {
    .sp-bottom {
        padding: 2px 0 72px;
        width: 100%;

    }

    .sp-bottom__title {
        font-size: 24px;
        /* margin-left: 15px; */
        padding-left: 10px;
    }

    .sp-bottom__subtitle {
        font-size: 19px;
        margin-left: 10px;
    }

    .sp-bottom__reviews-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sp-bottom__logos-row {
        height: 48px;
    }

    .sp-bottom__logo-item img {
        max-height: 30px;
        max-width: 150px;
    }

}

@media (max-width: 900px) {
    .sp-bottom__text {
        margin: 0 0 8px 0;
        font-size: 18px;
        line-height: 1.1;
        color: #555;
        padding: 1px;
    }

}

/* ≥1200px — 4 отзыва */

@media (min-width: 1200px) {
    .sp-bottom__inner {
        padding: 0 15px;
    }

    .sp-bottom__title {
        /* font-size: 26px; */
        padding-left: 10px;
    }

    .sp-bottom__reviews-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sp-bottom__logos-row {
        height: 52px;
    }

}

/* Мобилка: помедленнее и компактнее логотипы */

@media (max-width: 767px) {
    .sp-bottom__logo-item img {
        max-height: 22px;
        max-width: 110px;
    }

    .sp-bottom__logos-track--left {
        animation-duration: 30s;
    }

    .sp-bottom__logos-track--right {
        animation-duration: 34s;
    }
}