/* Exercise Ratings — TOP-1 SEO & Mobile-first Styles */
.sf-rt-hero,
.sf-rt-section,
.sf-rt-calc {
    background: #FFFFFF;
    border: 1px solid #ECECF6;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 28px;
}

.sf-rt-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #6E6E80;
}

.sf-rt-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #F1EBFC;
    color: #6A44B8;
    font-weight: 700;
}

.sf-rt-byline a {
    color: #7C55CC;
    font-weight: 700;
}

.sf-rt-byline a:hover { text-decoration: underline; }

.sf-rt-intro {
    font-size: 16px;
    line-height: 1.65;
    color: #464656;
    margin: 12px 0 18px;
}

.sf-rt-intro p { margin: 0 0 10px; }
.sf-rt-intro p:last-child { margin-bottom: 0; }

.sf-rt-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #F0F0F8;
}

.sf-rt-toc a {
    padding: 6px 13px;
    border-radius: 999px;
    background: #F8F8FE;
    border: 1px solid #E5E5F3;
    color: #373742;
    font-size: 13px;
    font-weight: 600;
}

.sf-rt-toc a:hover {
    background: #F1EBFC;
    border-color: #D2C2F5;
    color: #6A44B8;
}

/* Top-3 Cards */
.sf-rt-top3-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sf-rt-top-card {
    background: #F8F8FE;
    border: 1px solid #ECECF6;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sf-rt-top-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(148, 111, 222, 0.1);
}

.sf-rt-top-card--gold   { border-top: 4px solid #F5A623; }
.sf-rt-top-card--silver { border-top: 4px solid #9AA0B4; }
.sf-rt-top-card--bronze { border-top: 4px solid #C77E49; }

.sf-rt-top-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sf-rt-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF;
}

.sf-rt-medal--gold   { background: #F5A623; }
.sf-rt-medal--silver { background: #8E95AA; }
.sf-rt-medal--bronze { background: #C77E49; }

.sf-rt-top-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.sf-rt-top-card__media {
    background: #FFFFFF;
    border: 1px solid #EFEFF8;
    border-radius: 12px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin-bottom: 12px;
}

.sf-rt-top-card__media img {
    max-width: 130px;
    max-height: 130px;
    object-fit: contain;
}

.sf-rt-top-card__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
}

.sf-rt-top-card__title a { color: #262630; }
.sf-rt-top-card__title a:hover { color: #946FDE; }

.sf-rt-top-card__why {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #5E5E70;
}

.sf-rt-top-card__tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Comparison Table */
.sf-rt-table-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.sf-rt-sub {
    margin: 0;
    font-size: 14px;
    color: #6E6E80;
}

.sf-rt-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-rt-controls input[type="text"],
.sf-rt-controls select {
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid #DFDFEE !important;
    border-radius: 10px !important;
    background: #F8F8FE !important;
    font-size: 13px !important;
    color: #333 !important;
    margin: 0 !important;
    min-width: 150px;
}

.sf-rt-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.sf-rt-table {
    width: 100%;
    border-collapse: collapse;
}

.sf-rt-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7A7A8F;
    background: #F8F8FE;
    border-bottom: 1px solid #ECECF6;
    white-space: nowrap;
}

.sf-rt-table td {
    padding: 14px;
    border-bottom: 1px solid #F1F1F9;
    vertical-align: middle;
    font-size: 14px;
    color: #373742;
}

.sf-rt-table tbody tr:hover {
    background: #FAF9FE;
}

.sf-rt-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #F4F4FC;
    color: #5E5E70;
    font-weight: 700;
    font-size: 14px;
}

.sf-rt-rank-num.is-top {
    background: #946FDE;
    color: #FFFFFF;
}

.sf-rt-ex-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.sf-rt-thumb {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    border: 1px solid #ECECF6;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.sf-rt-thumb img {
    max-width: 52px;
    max-height: 52px;
    object-fit: contain;
}

.sf-rt-ex-name {
    font-weight: 700;
    font-size: 15px;
    color: #262630;
    display: block;
    line-height: 1.3;
    margin-bottom: 3px;
}

a.sf-rt-ex-name:hover { color: #946FDE; }

.sf-rt-ex-why {
    font-size: 12px;
    color: #6E6E80;
    line-height: 1.4;
}

.sf-rt-muscle-main { font-weight: 600; color: #262630; }
.sf-rt-muscle-sub  { font-size: 12px; color: #8B8B9E; }

.sf-rt-diff {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.sf-rt-diff--easy   { background: #E6F7F1; color: #12805C; }
.sf-rt-diff--medium { background: #FFF5E5; color: #C2740A; }
.sf-rt-diff--hard   { background: #FDECEC; color: #C92A2A; }

.sf-rt-td-reps { white-space: nowrap; }

.sf-rt-rating-cell {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.sf-rt-star-icon { color: #F5A623; font-size: 16px; }

/* Rep Calculator */
.sf-rt-calc {
    background: linear-gradient(135deg, #FFFFFF 0%, #F7F4FD 100%);
    border: 2px solid #946FDE;
    box-shadow: 0 12px 28px rgba(148, 111, 222, 0.1);
}

.sf-rt-calc__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #946FDE;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sf-rt-calc-form {
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E5DDF7;
}

.sf-rt-calc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.sf-rt-field { min-width: 0; }
.sf-rt-field--wide { grid-column: 1 / -1; }

.sf-rt-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #373742;
    margin-bottom: 6px;
}

.sf-rt-field input,
.sf-rt-field select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border: 1px solid #DFDFEE !important;
    border-radius: 10px !important;
    background: #FFFFFF !important;
    font-size: 14px !important;
    color: #333 !important;
}

.sf-rt-calc-btn {
    width: 100% !important;
    max-width: 340px !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 24px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 10px !important;
    background: #946FDE !important;
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.sf-rt-calc-btn:hover { background: #7C55CC !important; }

.sf-rt-calc-result { margin-top: 20px; }

.sf-rt-calc-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.sf-rt-kpi {
    background: #FFFFFF;
    border: 1px solid #E5DDF7;
    border-radius: 12px;
    padding: 12px 14px;
}

.sf-rt-kpi span {
    display: block;
    font-size: 12px;
    color: #6E6E80;
    margin-bottom: 4px;
}

.sf-rt-kpi strong {
    font-size: 18px;
    color: #6A44B8;
}

.sf-rt-calc-note {
    font-size: 14px;
    color: #373742;
    margin-bottom: 14px;
}

.sf-rt-calc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sf-rt-calc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #ECECF6;
}

.sf-rt-calc-idx {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F1EBFC;
    color: #6A44B8;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sf-rt-calc-ex { flex: 1; min-width: 0; }
.sf-rt-calc-ex-link { font-weight: 700; color: #262630; display: block; }
.sf-rt-calc-ex-link:hover { color: #946FDE; }
.sf-rt-calc-ex small { display: block; font-size: 12px; color: #7A7A8F; }

.sf-rt-calc-dose { text-align: right; white-space: nowrap; }
.sf-rt-calc-dose strong { display: block; font-size: 15px; color: #6A44B8; }
.sf-rt-calc-dose span { font-size: 12px; color: #7A7A8F; }

/* Methodology */
.sf-rt-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sf-rt-method-item {
    background: #F8F8FE;
    border: 1px solid #EFEFF8;
    border-radius: 14px;
    padding: 16px;
}

.sf-rt-method-item strong {
    display: block;
    font-size: 14px;
    color: #262630;
    margin-bottom: 6px;
}

.sf-rt-method-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5E5E70;
}

/* Archive Cards */
.sf-rt-arch-hero { margin-bottom: 24px; }
.sf-rt-arch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.sf-rt-arch-card {
    background: #FFFFFF;
    border: 1px solid #ECECF6;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.sf-rt-arch-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #8B8B9E;
}

.sf-rt-arch-badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: #F1EBFC;
    color: #6A44B8;
    font-weight: 700;
}

.sf-rt-arch-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}

.sf-rt-arch-card__title a { color: #262630; }
.sf-rt-arch-card__title a:hover { color: #946FDE; }

.sf-rt-arch-card__excerpt {
    font-size: 14px;
    color: #5E5E70;
    line-height: 1.5;
    margin: 0 0 14px;
}

.sf-rt-arch-thumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.sf-rt-arch-thumbs img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #ECECF6;
    padding: 4px;
    background: #FFFFFF;
}

.sf-rt-arch-card__foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #F0F0F8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.sf-rt-arch-expert { color: #7A7A8F; }
.sf-rt-arch-link { font-weight: 700; color: #7C55CC; }

/* Responsive Mobile (<= 767px) */
@media (max-width: 991px) {
    .sf-rt-top3-grid,
    .sf-rt-arch-grid,
    .sf-rt-method-grid,
    .sf-rt-calc-grid,
    .sf-rt-calc-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sf-rt-hero,
    .sf-rt-section,
    .sf-rt-calc {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .sf-rt-top3-grid,
    .sf-rt-arch-grid,
    .sf-rt-method-grid,
    .sf-rt-calc-grid,
    .sf-rt-calc-kpis {
        grid-template-columns: minmax(0, 1fr);
    }

    .sf-rt-controls {
        width: 100%;
    }

    .sf-rt-controls input[type="text"],
    .sf-rt-controls select,
    .sf-rt-calc-btn {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Transform comparison table into clean mobile cards */
    .sf-rt-table thead { display: none; }
    .sf-rt-table,
    .sf-rt-table tbody,
    .sf-rt-table tr,
    .sf-rt-table td {
        display: block;
        width: 100%;
    }
    .sf-rt-table tr.sf-rt-row {
        border: 1px solid #ECECF6;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 12px;
        background: #F8F8FE;
    }
    .sf-rt-table td {
        padding: 6px 0;
        border-bottom: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .sf-rt-table td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
        color: #8B8B9E;
        flex-shrink: 0;
    }
    .sf-rt-table td.sf-rt-td-ex {
        display: block;
        padding-bottom: 10px;
        border-bottom: 1px solid #E8E8F4;
        margin-bottom: 6px;
    }
    .sf-rt-table td.sf-rt-td-ex::before { display: none; }
    .sf-rt-ex-cell { min-width: 0; }

    .sf-rt-calc-row {
        flex-wrap: wrap;
    }
    .sf-rt-calc-dose {
        width: 100%;
        text-align: left;
        padding-left: 40px;
    }
}

/* === HowTo Editorial Guide === */
.sf-rt-howto__intro {
    font-size: 15px;
    line-height: 1.65;
    color: #464656;
    margin: 0 0 20px;
}

.sf-rt-howto-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sf-rt-howto-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #F8F8FE;
    border: 1px solid #EFEFF8;
}

.sf-rt-howto-step__num {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #946FDE;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.sf-rt-howto-step__body {
    flex: 1;
    min-width: 0;
}

.sf-rt-howto-step__title {
    font-size: 17px;
    font-weight: 700;
    color: #262630;
    margin: 0 0 6px;
    line-height: 1.35;
}

.sf-rt-howto-step__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #464656;
}

/* === Rating Comments Form === */
.sf-rt-comm-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (max-width: 767px) {
    .sf-rt-howto-step {
        padding: 14px;
        gap: 12px;
    }
    .sf-rt-comm-form .sf-ex-submit-btn {
        max-width: 100% !important;
    }
}

/* === Ratings Hub Page (/uprazhneniya/rejtingi/) === */
.sf-hub-hero {
    background: #FFFFFF;
    border: 1px solid #ECECF6;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 10px 28px rgba(38, 38, 48, 0.04);
}

.sf-hub-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sf-hub-stat {
    font-size: 13px;
    color: #6E6E80;
    font-weight: 600;
}

.sf-hub-subtitle {
    margin: 8px 0 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #5E5E70;
    max-width: 780px;
}

.sf-hub-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.sf-hub-search-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #8B8B9E;
    pointer-events: none;
}

.sf-hub-search-wrap input[type="text"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    padding: 0 44px 0 44px !important;
    margin: 0 !important;
    border: 1.5px solid #DCDCEB !important;
    border-radius: 12px !important;
    background: #F8F8FE !important;
    font-size: 15px !important;
    color: #262630 !important;
}

.sf-hub-search-wrap input[type="text"]:focus {
    border-color: #946FDE !important;
    background: #FFFFFF !important;
}

.sf-hub-search-clear {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #ECECF6;
    color: #5E5E70;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sf-hub-search-meta {
    font-size: 14px;
    color: #5E5E70;
    margin-bottom: 14px;
}

.sf-hub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #F0F0F8;
}

.sf-hub-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #F4F4FC;
    border: 1px solid transparent;
    color: #373742;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.16s;
}

.sf-hub-nav-pill:hover {
    background: #ECE6FA;
    border-color: #D2C2F5;
    color: #5E3BA6;
}

.sf-hub-nav-more {
    display: none;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px dashed #946FDE;
    background: #FFFFFF;
    color: #7C55CC;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.sf-hub-featured {
    margin-bottom: 28px;
}

.sf-hub-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sf-hub-sec-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: #E6F7F1;
    color: #12805C;
    font-size: 12px;
    font-weight: 700;
}

.sf-rt-arch-card--featured {
    border: 1px solid #DFD5F7;
    box-shadow: 0 8px 22px rgba(148, 111, 222, 0.08);
}

.sf-hub-section {
    background: #FFFFFF;
    border: 1px solid #ECECF6;
    border-radius: 18px;
    padding: 24px 26px;
    margin-bottom: 22px;
}

.sf-hub-sec-title {
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
    color: #262630;
    margin: 0;
}

.sf-hub-sec-count {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: #F1EBFC;
    color: #6A44B8;
    font-size: 13px;
    font-weight: 700;
}

.sf-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sf-hub-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #F8F8FE;
    border: 1px solid #EFEFF8;
    color: #2E2E3A;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    transition: all 0.16s ease;
}

.sf-hub-item:hover {
    background: #F1EBFC;
    border-color: #D2C2F5;
    color: #5E3BA6;
    transform: translateY(-1px);
}

.sf-hub-item__title {
    min-width: 0;
}

.sf-hub-item__arrow {
    flex-shrink: 0;
    color: #946FDE;
    font-weight: 700;
}

.sf-hub-section:not(.is-expanded):not(.is-searching) .sf-hub-item--extra {
    display: none;
}

.sf-hub-section.is-searching .sf-hub-sec-foot {
    display: none;
}

.sf-hub-sec-foot {
    margin-top: 14px;
    text-align: center;
}

.sf-hub-toggle-btn {
    padding: 9px 20px;
    border-radius: 10px;
    border: 1px solid #D8CBF5;
    background: #F8F6FE;
    color: #6A44B8;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
}

.sf-hub-toggle-btn:hover {
    background: #ECE4FA;
}

@media (max-width: 991px) {
    .sf-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sf-hub-hero,
    .sf-hub-section {
        padding: 18px 16px;
        border-radius: 16px;
    }
    .sf-hub-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .sf-hub-sec-title {
        font-size: 18px;
    }
    .sf-hub-nav:not(.is-expanded) .sf-hub-nav-pill--extra {
        display: none;
    }
    .sf-hub-nav-more {
        display: inline-flex;
    }
}
