.ratings {
    background: #FCF5FC;
}

.ratings__title {
    font-family: Manrope, sans-serif;
    font-weight: 600;
    font-size: 55px;
    line-height: 64px;
    color: #5C075E;
    margin: 0 0 50px 0;
}

.ratings__rows {
    display: flex;
    flex-direction: column;
}

.ratings__divider {
    width: 100%;
    height: 1px;
    background: #DCBADC;
}

.ratings__row {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 0;
}

.ratings__branch-card {
    width: 517px;
    height: 214px;
    flex-shrink: 0;
    background: #8D2A8F;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: flex-start;  
    gap: 25px;
    box-sizing: border-box;
    overflow: hidden;
}

.ratings__branch-photo-wrap {
    width: 166px;
    height: 164px;
    border-radius: 15px;
    background: #FFFFFF;
    flex-shrink: 0;
    overflow: hidden;
}

.ratings__branch-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.ratings__branch-address {
    font-family: Manrope, sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 36px;
    color: #FCF5FC;
    flex: 1;
    align-self: flex-start; 
}

.ratings__platforms {
    display: flex;
    flex: 1;
    gap: 25px;
}

.ratings__platform-card {
    flex: 1;
    height: 214px;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.ratings__platform-logo {
    height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.ratings__platform-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.ratings__platform-score {
    font-family: Manrope, sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 32px;
    letter-spacing: -0.01em;
    color: #5C075E;
}

.ratings__platform-count {
    font-family: Manrope, sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 25px;
    color: #5C075E;
}

@media (max-width: 1024px) {
    .ratings__title {
        font-size: 34px;
        line-height: 46px;
        margin-bottom: 35px;
    }

    .ratings__row {
        gap: 20px;
    }

    .ratings__branch-card {
        width: 301px;
        height: 140px;
        padding: 15px;
        border-radius: 15px;
        gap: 15px;
    }

    .ratings__branch-photo-wrap {
        width: 112px;
        height: 110px;
        border-radius: 10px;
    }

    .ratings__branch-address {
        font-size: 14px;
        line-height: 19px;
    }

    .ratings__platforms {
        gap: 20px;
    }

    .ratings__platform-card {
        height: 140px;
        padding: 15px;
        border-radius: 15px;
    }

    .ratings__platform-logo {
        height: 27px;
    }

    .ratings__platform-score {
        font-size: 25px;
        line-height: 32px;
    }

    .ratings__platform-count {
        font-size: 12px;
        line-height: 16px;
    }

    .ratings__divider {
        display: none;
    }

    .ratings__rows {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .ratings__row {
        flex-direction: column;
        align-items: stretch;
    }

    .ratings__branch-card {
        width: 100%;
    }

    .ratings__platforms {
        flex-wrap: wrap;
    }

    .ratings__platform-card {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .ratings__title {
        font-size: 24px;
        line-height: 27px;
        margin-bottom: 25px;
    }

    .ratings__row {
        flex-direction: column;
        align-items: stretch;
        background: #FFFFFF;
        border: 1px solid #DCBADC;
        border-radius: 15px;
        padding: 0;
        gap: 0;
        overflow: hidden;
    }

    .ratings__branch-card {
        width: 100%;
        border-radius: 15px;
    }

    .ratings__platforms {
        flex-direction: column;
        padding: 15px 0;
        gap: 0;
    }

    .ratings__platform-card {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 100px;
        border-bottom: 1px solid #DCBADC;
        border-radius: 0;
        padding: 15px;
    }

    .ratings__platform-card:last-child {
        border-bottom: none;
    }
}