
/* ADRESSOK — Rating */

.wr-rating {
    --rating-blue: #2563eb;
    --rating-ink: #102445;
    --rating-border: #dce6f4;
    padding: 22px 0 55px;
}

.wr-rating-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px 0 30px;
}

.wr-rating-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 850;
    letter-spacing: -.045em;
    color: var(--rating-ink);
}

.wr-rating-hero p {
    color: #637895;
    max-width: 610px;
    margin: 0;
}

.wr-rating-stat {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: 18px 24px;
    border: 1px solid var(--rating-border);
    background: #fff;
    border-radius: 15px;
}

.wr-rating-stat strong {
    font-size: 32px;
    line-height: 1.2;
    color: var(--rating-blue);
}

.wr-rating-stat span {
    color: #70829e;
    font-size: 12px;
}

.wr-rating-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 21px;
}

.wr-rating-toolbar strong,
.wr-rating-toolbar span {
    display: block;
}

.wr-rating-toolbar strong {
    color: var(--rating-ink);
    font-size: 16px;
}

.wr-rating-toolbar span,
.wr-rating-count {
    font-size: 12px;
    color: #7b8ba4;
}

.wr-rating-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wr-rating-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: white;
    border: 1px solid var(--rating-border);
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(19, 49, 96, .045);
    transition: transform .2s, box-shadow .2s;
}

.wr-rating-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(19, 49, 96, .1);
}

.wr-rating-preview {
    position: relative;
    background: #f2f6fc;
}

.wr-rating-preview > a {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.wr-rating-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.wr-rating-position {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    border-radius: 10px;
    background: #e9f1ff;
    color: #215bcb;
    font-weight: 850;
    font-size: 13px;
    padding: 7px 12px;
    box-shadow: 0 3px 12px rgba(10, 30, 70, .12);
}

.wr-rating-card:nth-child(1) .wr-rating-position {
    background: #ffe38a;
    color: #755000;
}

.wr-rating-card:nth-child(2) .wr-rating-position {
    background: #dce9ff;
}

.wr-rating-card:nth-child(3) .wr-rating-position {
    background: #ffddc9;
    color: #a34e23;
}

.wr-rating-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 17px;
}

.wr-rating-body h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
}

.wr-rating-body h2 a {
    color: var(--rating-ink);
    text-decoration: none;
}

.wr-rating-body h2 span {
    color: var(--rating-blue);
    font-size: 12px;
}

.wr-rating-body p {
    font-size: 12px;
    color: #6d7f99;
    line-height: 1.6;
    margin: 0 0 8px;
}

.wr-rating-score {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.wr-rating-score strong {
    color: #1457df;
    font-size: 24px;
}

.wr-rating-score small {
    font-size: 12px;
    color: #7794c4;
}

.wr-rating-score > span {
    color: #8392a7;
    font-size: 11px;
}

.wr-rating-progress {
    height: 7px;
    border-radius: 10px;
    overflow: hidden;
    background: #e3ecfa;
}

.wr-rating-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg,#60a5fa,#2563eb);
}

.wr-rating-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 11px;
    border-radius: 9px;
    background: #2563eb;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.wr-rating-button:hover {
    background: #1d4ed8;
}

.wr-rating-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 30px;
}

.wr-rating-page-info {
    color: #74849b;
    font-size: 13px;
}

.wr-rating-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
}

.wr-rating-pagination li {
    list-style: none;
}

.wr-rating-pagination li a,
.wr-rating-pagination li span {
    display: grid;
    place-items: center;
    min-width: 39px;
    height: 39px;
    padding: 0 10px;
    border: 1px solid #dce6f4;
    border-radius: 9px;
    background: white;
    color: #2563eb;
    text-decoration: none;
}

.wr-rating-pagination li.active a,
.wr-rating-pagination li.active span {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

@media (max-width: 991px) {
    .wr-rating-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 767px) {
    .wr-rating-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .wr-rating-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wr-rating-grid {
        grid-template-columns: 1fr;
    }

    .wr-rating-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
