:root {
    --navy: #0b1f3a;
    --green: #21b36b;
    --green-d: #178a52;
    --green-d-2: #127a47;
    --color-gold: #edc26c;
    --color-ink: #92a2b6;
    --line: #e3e8ef;
    --color-white: #fff;
    --color-dark-gray-1: #151513;
    --color-dark-gray-2: #1c1c1e;
    --color-dark-gray-3: #2d2d2d;
    --color-gray-4: #768598;
    --color-gray-5: #8f9fb7;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(11, 31, 58, .08);
}

/* ---------- Showcase ---------- */
.list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 24px 0;
}

.op {
    position: relative;
    display: grid;
    grid-template-columns:56px 200px 1fr 230px;
    gap: 22px;
    align-items: center;
    background: var(--color-dark-gray-1);
    border: 2px solid var(--color-dark-gray-3);
    border-radius: var(--radius);
    padding: 22px 22px;
    box-shadow: var(--shadow);
    transition: all .2s;
}

.op:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .8);
    border-color: var(--color-dark-gray-1);
}

.rank {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--color-white);
    color: var(--color-dark-gray-1);
    font-family: Sora, sans-serif;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center
}

.brand-logo {
    width: 100%;
    max-width: 180px;
    height: 78px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: Sora, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.01em;
    box-shadow: inset 0 -14px 30px rgba(0, 0, 0, .18)
}

.brand-logo img {
    max-height: 52px;
    max-width: 80%;
    object-fit: contain
}

.brand-name {
    font-family: Sora, sans-serif;
    font-weight: 700;
    color: var(--color-white);
    font-size: 1.05rem
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--color-gray-4)
}

.stars {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--color-gray-4);
}

.stars::before {
    content: "★★★★★"
}

.stars span {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--color-gold)
}

.stars span::before {
    content: "★★★★★"
}

.score {
    font-weight: 800;
    color: var(--color-white);
}

.op-body h3 {
    margin: 0 0 8px;
    font-size: 1.02rem
}

.pros {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: grid;
    gap: 5px
}

.pros li {
    position: relative;
    padding-left: 26px;
    font-size: .94rem;
    line-height: 1.5;
}

.pros li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    /* --c1 и --c2 задаются на article.op (градиент бренда) */
    background-color: color-mix(in srgb, var(--c1, #14532d) 35%, transparent)
}

/* Галочка: SVG как маска, цвет (stroke) задается через background-color */
.pros li::after {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-color: var(--c2, #22a05a);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat
}

.bestfor {
    font-size: .92rem;
    color: var(--color-gray-4);
    margin: 0
}

.bestfor strong {
    color: var(--color-ink)
}

.op-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch
}

.bonus {
    background-color: #effaf4;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    font-size: .86rem;
    line-height: 1.45;
    color: #1d5a3b
}

.bonus small {
    display: block;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c2);
    margin-bottom: 2px
}

.bonus b {
    display: block;
    font-family: Sora, sans-serif;
    font-size: 1.12rem;
    line-height: 1.25;
    color: var(--c1);
    margin: 2px 0 2px
}

.bonus span {
    display: block;
    font-size: .8rem;
    color: var(--c2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--color-gray-4);
    color: #fff;
    transition: .2s;
    border: 0;
    cursor: pointer;
    text-align: center
}

.btn:hover {
    background: var(--color-gray-5);
    /*transform: translateY(-1px)*/
}

.btn svg {
    width: 18px;
    height: 18px
}

.tc {
    font-size: .72rem;
    color: var(--color-gray-4);
    text-align: center
}

/* Top 1 highlight */
.op.top {
    border-color: var(--color-gold);
    background: linear-gradient(180deg, var(--color-dark-gray-1) 0%, var(--color-dark-gray-2) 55%);
    box-shadow: 0 16px 44px rgba(245, 197, 24, .25), var(--shadow);
    padding-top: 34px
}

.op.top .rank {
    background: linear-gradient(135deg, var(--color-gold), #ffb300);
    color: var(--color-dark-gray-1);
    box-shadow: 0 6px 16px rgba(245, 197, 24, .45)
}

.op.top .btn {
    background: linear-gradient(135deg, var(--color-gold), #ffb300);
    color: var(--color-dark-gray-1);
    box-shadow: 0 8px 20px rgba(245, 197, 24, .4)
}

.op.top .btn:hover {
    filter: brightness(1.05)
}

.ribbon {
    position: absolute;
    top: -14px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-dark-gray-1);
    background-color: var(--color-gold);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(11, 31, 58, .25)
}

.ribbon svg {
    width: 14px;
    height: 14px;
    fill: var(--color-dark-gray-1) !important;
}

.explore {
    display: flex;
    flex-flow: column;
    gap: 6px;
}

/* Десктоп: если в .op-body есть контент (непустой h3, .pros или .bestfor), раскладка 3 + 1:
   .op-cta уходит вниз на всю ширину, как на планшете. */
@media (min-width: 768px) {
    .op:has(.op-body :is(h3:not(:empty), li, p)) {
        grid-template-columns: 48px 170px 1fr;
    }

    .op:has(.op-body :is(h3:not(:empty), li, p)) .op-cta {
        grid-column: 1/-1;
        display: grid;
        /*grid-template-columns: 1fr 1fr;*/
        /*align-items: start;*/
        /*align-content: center;*/
    }

    /* Слева бонус на всю высоту блока, справа кнопка, ссылка и условия. Элементы не растягиваются по высоте. */
    .op:has(.op-body :is(h3:not(:empty), li, p)) .op-cta .bonus {
        grid-column: 1;
        grid-row: 1 / span 3;
        align-self: center;
    }

    .op:has(.op-body :is(h3:not(:empty), li, p)) .op-cta :is(.btn, .rv-link, .tc) {
        grid-column: 2;
    }
}

/* Десктоп: если в .op-body нет контента, .op-cta стоит справа (4-я колонка). */
@media (min-width: 768px) {
    .op:not(:has(.op-body :is(h3:not(:empty), li, p))) .op-cta {
        grid-column: 4;
    }
}

@media (max-width: 767px) {
    /*.op {
        grid-template-columns:48px 170px 1fr;
    }*/

    /*.op-cta {
        grid-column: 1/-1;
        flex-direction: row;
        flex-wrap: wrap
    }*/

    .op-cta .bonus {
        flex: 1 1 260px
    }

    .op-cta .btn {
        flex: 1 1 200px
    }

    .op-cta .tc {
        flex-basis: 100%
    }
}

@media (max-width: 767px) {
    .op {
        grid-template-columns:1fr;
        gap: 14px;
        padding: 20px 16px;
        text-align: left
    }

    .op .rank {
        position: absolute;
        top: 14px;
        left: 14px;
        width: 38px;
        height: 38px;
        font-size: 1rem
    }

    .op.top .rank {
        top: 26px
    }

    .brand {
        padding-top: 4px
    }

    .op-cta {
        flex-direction: column
    }

    .op-cta .bonus, .op-cta .btn {
        flex: auto
    }
}

.rv-link {
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-gold);
    text-decoration: underline;
    text-underline-offset: 3px
}

.rv-link:hover {
    color: var(--color-white)
}

.op .brand-name a {
    color: inherit;
    text-decoration: none
}

.op .brand-name a:hover {
    color: var(--green-d)
}

.op.top .bonus {
    border-color: var(--color-gold);
    background: #fff8dc
}

.op.top .bonus small {
    color: #9a7400
}

/* ===== Mobile optimisation ===== */
@media (max-width: 700px) {
    body {
        font-size: 16px;
        line-height: 1.6
    }

    h3 {
        font-size: 1.08rem
    }

    /* showcase cards: compact */
    .op {
        padding: 18px 14px 16px;
        gap: 12px
    }

    .op.top {
        padding-top: 28px
    }

    .op .rank {
        left: auto;
        right: 12px;
        top: 12px;
        width: 32px;
        height: 32px;
        font-size: .9rem;
        border-radius: 10px
    }

    .op.top .rank {
        top: 24px
    }

    .op .brand {
        display: grid;
        grid-template-columns:96px 1fr;
        grid-template-rows:auto auto;
        column-gap: 12px;
        row-gap: 2px;
        justify-items: start;
        align-items: center;
        text-align: left;
        padding: 0 40px 0 0
    }

    .op .brand-logo {
        grid-row: 1/3;
        width: 96px;
        height: 58px;
        font-size: .92rem;
        border-radius: 12px
    }

    .op .brand-name {
        align-self: end;
        font-size: 1rem
    }

    .op .rating {
        align-self: start
    }

    .op-body h3 {
        font-size: .98rem
    }

    .pros li {
        font-size: .92rem
    }

    .op-cta .bonus b {
        font-size: 1.05rem
    }

    .op-cta .btn {
        min-height: 48px
    }
}

@media (max-width: 360px) {
    .op .brand {
        grid-template-columns:78px 1fr;
        padding-right: 34px;
        column-gap: 10px
    }

    .op .brand-logo {
        width: 78px;
        height: 50px;
        font-size: .78rem
    }

    .op .stars {
        font-size: .85rem;
        letter-spacing: 1px
    }

    .op .rating {
        gap: 5px;
        font-size: .82rem
    }
}

@media (hover: none) {
    .op:hover, .btn:hover {
        transform: none
    }
}

