/* SEO-кейс портфоліо (inc/portfolio-seo.php) */

.seo-case__label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 6px 16px;
    border-radius: 3rem;
    font-size: 14px;
    letter-spacing: .12em;
    background: linear-gradient(to right, #3232DC, #1B1B76);
}

.seo-case__note {
    margin-top: 1rem;
    font-size: 14px;
    font-weight: 300;
    color: #8A8A8A;
}

/*kpi*/
.seo-kpi {
    height: 100%;
    padding: 28px 24px;
    border-radius: 24px;
    border: 2px solid transparent;
    background: linear-gradient(#1A1A1A, #1A1A1A) padding-box,
    linear-gradient(180deg, #8C0D27, #31181D) border-box;
}

.seo-kpi__value {
    font-size: 56px;
    font-weight: 500;
    line-height: 1;
    background: linear-gradient(180deg, #FF4D6D, #FF0033);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.seo-kpi__label {
    margin-top: 12px;
    font-size: 17px;
    color: #fff;
}

.seo-kpi__note {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 300;
    color: #8A8A8A;
}

/*chart*/
.seo-chart {
    padding: 24px;
    border-radius: 24px;
    background: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, .08);
}

.seo-chart__legend,
.seo-pos__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 300;
    color: #D0D0D0;
}

.seo-chart__legend span:before,
.seo-pos__legend span:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 3px;
    vertical-align: -1px;
}

.seo-chart__legend .is-clicks:before {
    background: linear-gradient(#FF0033, #99001F);
}

.seo-chart__legend .is-impr:before {
    height: 3px;
    border-radius: 2px;
    vertical-align: 3px;
    background: #6B6BFF;
}

.seo-chart__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.seo-chart__grid {
    stroke: rgba(255, 255, 255, .07);
    stroke-width: 1;
}

.seo-chart__val {
    fill: #fff;
    font-size: 15px;
    text-anchor: middle;
}

.seo-chart__month {
    fill: #8A8A8A;
    font-size: 14px;
    text-anchor: middle;
}

.seo-chart__line {
    fill: none;
    stroke: #6B6BFF;
    stroke-width: 3;
    stroke-linejoin: round;
}

.seo-chart__dot {
    fill: #161616;
    stroke: #6B6BFF;
    stroke-width: 3;
}

/*table*/
.seo-table {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
}

.seo-table__row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
}

.seo-table__row > div {
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 300;
    color: #D0D0D0;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.seo-table__head > div {
    border-top: 0;
    color: #fff;
    font-weight: 400;
    background: rgba(255, 255, 255, .04);
}

.seo-table .is-accent {
    color: #FF0033;
    font-weight: 500;
}

/*works*/
.seo-work {
    height: 100%;
    padding: 24px;
    border-radius: 24px;
    border: 2px solid transparent;
    background: linear-gradient(#1A1A1A, #1A1A1A) padding-box,
    linear-gradient(180deg, #8C0D27, #31181D) border-box;
}

.seo-work__num {
    font-size: 48px;
    line-height: 1;
    color: #161616;
    text-shadow: 0 -1px #FF0033, 0 1px #99001F, -1px 0 #FF0033, 1px 0 #99001F, -1px -1px #FF0033, 1px -1px #FF0033, -1px 1px #99001F, 1px 1px #99001F;
}

.seo-work__title {
    font-size: 22px;
    margin: .7em 0 .5em;
}

.seo-work__text {
    font-size: 16px;
    font-weight: 300;
    color: #D0D0D0;
}

.seo-work__text ul {
    padding-left: 1.1em;
    margin: .5em 0 0;
}

.seo-work__text li {
    margin-bottom: .3em;
}

/*positions*/
.seo-pos__row {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.seo-pos__month {
    font-size: 15px;
    font-weight: 300;
    color: #D0D0D0;
}

.seo-pos__bar {
    display: flex;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
}

.seo-pos__bar span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    min-width: 28px;
}

.seo-pos__bar .is-top10,
.seo-pos__legend .is-top10:before {
    background: linear-gradient(to right, #FF0033, #99001F);
}

.seo-pos__bar .is-top20,
.seo-pos__legend .is-top20:before {
    background: #3232DC;
}

.seo-pos__bar .is-top50,
.seo-pos__legend .is-top50:before {
    background: #4A4A4A;
}

.seo-pos__sum {
    font-size: 18px;
    text-align: right;
}

@media (max-width: 767px) {
    .seo-kpi {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .seo-kpi__value {
        font-size: 36px;
    }

    .seo-kpi__label {
        font-size: 15px;
    }

    .seo-chart {
        padding: 14px;
    }

    .seo-chart__val {
        font-size: 22px;
    }

    .seo-chart__month {
        font-size: 20px;
    }

    .seo-pos__row {
        grid-template-columns: 84px 1fr 30px;
    }
}
