/* Useful sites carousel — before footer */

.useful-sites {
    background: #edf1f2;
    padding: 36px 0 28px;
}

.useful-sites-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.useful-sites-title {
    margin: 0 0 22px;
    color: #24323a;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 900;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.useful-sites-viewport {
    overflow: hidden;
    width: 100%;
}

.useful-sites-track {
    display: flex;
    gap: 16px;
    transition: transform .45s ease;
    will-change: transform;
}

.useful-site-card {
    flex: 0 0 calc((100% - 48px) / 4);
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 4px;
    text-decoration: none;
    color: #24323a;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.useful-site-card:hover {
    border-color: rgba(37, 88, 168, 0.35);
    box-shadow: 0 10px 22px rgba(37, 88, 168, 0.1);
    transform: translateY(-2px);
}

.useful-site-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    display: grid;
    place-items: center;
}

.useful-site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.useful-site-logo-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #2558a8;
    font-size: 13px;
    font-weight: 900;
}

.useful-site-name {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.useful-sites-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.useful-sites-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #2558a8;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.useful-sites-dot.is-active {
    background: #2558a8;
}

.useful-sites-dot:hover {
    transform: scale(1.12);
}

.useful-sites-dots[hidden] {
    display: none;
}

@media (max-width: 1100px) {
    .useful-site-card {
        flex-basis: calc((100% - 16px) / 2);
    }
}

@media (max-width: 640px) {
    .useful-sites {
        padding: 28px 0 22px;
    }

    .useful-sites-inner {
        width: calc(100% - 24px);
    }

    .useful-site-card {
        flex-basis: 100%;
        padding: 14px 14px;
    }

    .useful-site-logo {
        width: 46px;
        height: 46px;
    }

    .useful-site-name {
        font-size: 13px;
    }
}
