* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.rating-sportsmen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 68px;
}

@media (max-width: 1440px) {
    .rating-sportsmen {
        margin-bottom: 64px;
    }
}
@media (max-width: 1200px) {
    .rating-sportsmen {
        margin-bottom: 48px;
    }
}
@media (max-width: 1024px) {
    .rating-sportsmen {
        margin-bottom: 40px;
    }
}
@media (max-width: 768px) {
    .rating-sportsmen {
        margin-bottom: 32px;
    }
}
@media (max-width: 480px) {
    .rating-sportsmen {
        margin-bottom: 24px;
    }
}
@media (max-width: 375px) {
    .rating-sportsmen {
        margin-bottom: 20px;
    }
}
.rating-title {
    max-width: 1720px;
    width: 100%;
    position: relative;
    margin-top: 40px;
}
.rating-title h2 {
    font-weight: 700;
    font-size: 80px;
    line-height: 96px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #F5F5F7;
    z-index: 0;
    top: 0;
    position: absolute;
    left: 0;
    font-family: "Oswald";
}
.rating-title h1 {
    font-weight: 700;
    position: absolute;
    font-size: 56px;
    line-height: 64px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #262626;
    z-index: 1;
    top: 48px;
    left: 0;
    font-family: "Oswald";
}

@media (max-width: 1720px) {
    .rating-title {
        width: 100%;
        max-width: 1720px;
        padding: 0 60px;
    }
    .rating-title h1,
    .rating-title h2 {
        left: 60px;
    }
}
@media (max-width: 1440px) {
    .rating-title {
        padding: 0 60px;
        margin-top: 32px;
    }
    .rating-title h1,
    .rating-title h2 {
        left: 60px;
    }
}
@media (max-width: 1300px) {
    .rating-title h1,
    .rating-title h2 {
        left: 60px;
    }
    .rating-title h2 {
        font-size: 64px;
        line-height: 76px;
    }
    .rating-title h1 {
        font-size: 44px;
        line-height: 52px;
        top: 38px;
    }
}
@media (max-width: 1200px) {
    .rating-title {
        margin-top: 24px;
        padding: 0 40px;
    }
    .rating-title h1,
    .rating-title h2 {
        left: 40px;
    }
    .rating-title h2 {
        font-size: 60px;
        line-height: 72px;
    }
    .rating-title h1 {
        font-size: 42px;
        line-height: 50px;
        top: 36px;
    }
}
@media (max-width: 1024px) {
    .rating-title {
        padding: 0 24px;
    }
    .rating-title h1,
    .rating-title h2 {
        left: 24px;
    }
    .rating-title h2 {
        font-size: 56px;
        line-height: 66px;
    }
    .rating-title h1 {
        font-size: 40px;
        line-height: 48px;
        top: 32px;
    }
}
@media (max-width: 768px) {
    .rating-title {
        padding: 0 16px;
        margin-top: 16px;
    }
    .rating-title h1,
    .rating-title h2 {
        left: 16px;
    }
    .rating-title h2 {
        font-size: 40px;
        line-height: 48px;
    }
    .rating-title h1 {
        font-size: 28px;
        line-height: 36px;
        top: 24px;
    }
}
@media (max-width: 480px) {
    .rating-title h2 {
        font-size: 36px;
        line-height: 44px;
        font-weight: 600;
        letter-spacing: 0;
    }
    .rating-title h1 {
        font-size: 24px;
        line-height: 32px;
        font-weight: 600;
        letter-spacing: 0;
        top: 20px;
    }
}
.search-section {
    width: 100%;
    max-width: 1720px;
    margin-top: 176px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-bottom: 1px solid linear-gradient(180deg, #AD8433, #FFE5A0);
}
.search-section h2 {
    font-weight: 600;
    font-size: 36px;
    line-height: 44px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #ED1C24;
    font-family: "Oswald";
}
.search-section .search-form {
    display: flex;
    flex-direction: column;
    max-width: 1136px;
    gap: 8px;
}

.search-section .search-form__sort {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    background: #F5F5F7;
    padding: 8px;
    border: 1px solid #E1E8F0;
    border-radius: 4px;
}

.search-section .search-form__sort-label {
    font-family: "Inter";
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #0080C7;
    white-space: nowrap;
}

.search-section .search-form__sort-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.search-section .search-form__sort-field {
    min-width: 140px;
    flex: 0 0 auto;
}

.search-section .search-form__sort-select {
    height: 24px;
    border: none;
    border-radius: 4px;
    color: #262626;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    font-family: "Inter";
    background-color: #F5F5F7;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L10 13L15 8' stroke='%23626262' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding: 0;
    min-width: 100%;
    outline: none;
}

.search-section .search-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.search-section .search-form__field label {
    font-size: 16px;
    color: #262626;
    font-weight: 400;
    line-height: 24px;
    font-family: "Inter";
    letter-spacing: 0;
}

.search-section .search-form__field input,
.search-section .search-form__field .search-form__input {
    width: 100%;
    height: 32px;
    border: 1px solid #E1E8F0;
    border-radius: 4px;
    color: #262626;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    font-family: "Inter";
    padding: 0 16px;
    background: #fff;
    outline: none;
}

.search-section .search-form__field input::placeholder,
.search-section .search-form__field .search-form__input::placeholder {
    color: #BDBDBD;
}
.search-section .search-form__actions {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}
.search-section .filter-rating-btn {
    height: 36px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.38px;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.search-section .filter-rating-btn img {
    object-fit: contain;
    display: block;
    width: 24px;
    height: auto;
}
.search-section .btn--primary {
    background: #262626;
    color: #fff;
}
.search-section .btn--secondary {
    color: #262626;
    background-color: #ffffff;
    border: 1px solid #8C8C8C;
}

@media (max-width: 1720px) {
    .search-section {
        max-width: 100%;
        padding: 0 60px;
        margin-top: 180px;
    }
}
@media (max-width: 1440px) {
    .search-section {
        padding: 0 60px;
        margin-top: 172px;
        gap: 32px;
    }
    .search-section h2 {
        font-size: 36px;
        line-height: 44px;
    }
    .search-section .search-form {
        max-width: 1000px;
    }
}
@media (max-width: 1300px) {
    .search-section {
        padding: 0 60px;
        margin-top: 140px;
        gap: 24px;
    }
    .search-section h2 {
        font-size: 32px;
        line-height: 40px;
    }
    .search-section .search-form {
        max-width: 900px;
    }

    .search-section .search-form__sort-select {
        max-width: 890px;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-right: 40px;
    }
}
@media (max-width: 1200px) {
    .search-section .search-form__field input,
    .search-section .search-form__field .search-form__input {
        height: 44px;
    }

    .search-section {
        margin-top: 120px;
        padding: 0 40px;
        gap: 24px;
    }
    .search-section h2 {
        font-size: 30px;
        line-height: 38px;
    }
    .search-section .search-form {
        max-width: 100%;
    }
    .search-section .search-form__field select {
        height: 44px;
    }
    .search-section .search-form__actions {
        justify-content: center;
    }
    .search-section .filter-rating-btn {
        padding: 0 24px;
    }
}
@media (max-width: 1024px) {
    .search-section {
        padding: 0 24px;
        margin-top: 100px;
        gap: 20px;
    }
    .search-section h2 {
        font-size: 28px;
        line-height: 36px;
    }
}
@media (max-width: 768px) {
    .search-section .search-form__sort {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-section .search-form__sort-grid {
        display: grid;
        gap: 12px;
    }

    .search-section .search-form__sort-field {
        min-width: 0;
    }

    .search-section .search-form__field input,
    .search-section .search-form__field .search-form__input {
        height: 40px;
        font-size: 14px;
    }

    .search-section {
        margin-top: 80px;
        gap: 20px;
        padding: 0 16px;
    }
    .search-section h2 {
        font-size: 26px;
        line-height: 34px;
    }
    .search-section .search-form__field select {
        height: 40px;
    }
    .search-section .search-form__actions {
        flex-direction: row;
        gap: 12px;
        justify-content: space-between;
    }
    .search-section .search-form__actions .filter-rating-btn {
        width: calc(50% - 6px);
    }
    .search-section .btn {
        width: 100%;
        height: 40px;
    }
}
@media (max-width: 480px) {
    .search-section .search-form__sort-grid {
        grid-template-columns: 1fr;
    }

    .search-section .search-form__field input,
    .search-section .search-form__field .search-form__input {
        height: 36px;
        font-size: 12px;
    }

    .search-section {
        margin-top: 80px;
        gap: 16px;
    }
    .search-section h2 {
        font-size: 18px;
        line-height: 24px;
    }
    .search-section .search-form__field select {
        height: 36px;
    }
    .search-section .filter-rating-btn {
        height: 36px;
    }
}
.results-section {
    width: 100%;
    max-width: 1720px;
    margin-top: 32px;
}
.results-section .mobile-result__title {
    margin-top: 40px;
    color: #000000;
    font-family: "Oswald";
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    justify-self: start;
    display: none;
}
.results-section .rating-table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
    border-bottom: 2px solid #BF9932;
    font-family: "Inter";
    color: #262626;
}
.results-section .rating-table thead {
    border-bottom: 2px solid #BF9932;
}
.results-section .rating-table thead th {
    padding: 16px 20px;
    text-align: center;
    vertical-align: top;
    font-family: "Inter";
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    white-space: nowrap;
    color: #8C8C8C;
    border-top: 2px solid #BF9932;
}
.results-section .rating-table thead th:first-child {
    position: relative;
    left: 50px;
}
.results-section .rating-table tbody {
    position: relative;
}
.results-section .rating-table tbody tr {
    position: relative;
    border-bottom: 2px solid #BF9932;
    transition: all 0.2s ease;
    cursor: pointer;
}
.results-section .rating-table tbody tr td {
    padding: 16px 0;
    font-size: 16px;
    line-height: 24px;
    white-space: normal;
    vertical-align: middle;
    position: relative;
    text-align: center;
}
.results-section .rating-table tbody .rating-table__row {
    position: relative;
    z-index: 1;
}
.results-section .rating-table tbody .rating-table__row:hover {
    background: #F5F5F7;
}
.results-section .rating-table tbody .rating-table__row.is-open {
    background: #F5F5F7;
}
.results-section .rating-table tbody .rating-table__accordion.open {
    display: table-row;
    border-bottom: none;
}
.results-section .rating-table tbody .rating-table__accordion {
    display: none;
}
.results-section .rating-table tbody .rating-table__accordion.open {
    display: table-row;
}
.results-section .rating-table tbody .accordion-content {
    opacity: 0;
}
.results-section .rating-table tbody .rating-table__accordion.open .accordion-content {
    opacity: 1;
    animation: cascadeDown 0.6s ease-out;
}
@keyframes cascadeDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.results-section .rating-table tbody .accordion-table-wrapper {
    width: 100%;
    max-width: 844px;
    margin-left: 146px;
}
.results-section .rating-table tbody .accordion-table-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.results-section .rating-table tbody .accordion-table-section {
    display: flex;
    gap: 61px;
    align-items: flex-start;
}
.results-section .rating-table tbody .table-year {
    font-family: "Inter";
    font-weight: 400;
    font-size: 16px;
    padding-top: 9px;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    color: #262626;
    white-space: nowrap;
}
.results-section .rating-table tbody .accordion-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    font-family: "Inter";
    font-size: 16px;
    color: #262626;
    flex-grow: 1;
    margin-bottom: 20px;
}
.results-section .rating-table tbody .accordion-table thead {
    border-bottom: none !important;
    background: none;
}
.results-section .rating-table tbody .accordion-table thead tr {
    border-bottom: none !important;
}
.results-section .rating-table tbody .accordion-table th {
    padding: 0 16px 16px;
    vertical-align: top;
    text-align: left;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #8C8C8C;
    font-family: "Inter";
    background: none;
    border: none !important;
    box-shadow: none !important;
}
.results-section .rating-table tbody .accordion-table th:nth-child(1) {
    padding-left: 0;
    left: 0;
    width: 48%;
}
.results-section .rating-table tbody .accordion-table th:nth-child(2) {
    width: 16%;
}
.results-section .rating-table tbody .accordion-table th:nth-child(3) {
    width: 14%;
}
.results-section .rating-table tbody .accordion-table th:nth-child(4) {
    width: 22%;
}
.results-section .rating-table tbody .accordion-table tbody tr {
    border-bottom: none !important;
    transition: background-color 0.2s ease;
}
.results-section .rating-table tbody .accordion-table tbody tr td {
    padding: 2px 16px;
    vertical-align: top;
    color: #262626;
    font-family: "Inter";
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    text-align: left;
    background: transparent;
}
.results-section .rating-table tbody .accordion-table tbody tr td:first-child {
    padding-left: 0;
    width: 48%;
}
.results-section .rating-table tbody .accordion-table tbody tr td:nth-child(2) {
    width: 16%;
    text-align: left;
}
.results-section .rating-table tbody .accordion-table tbody tr td:nth-child(3) {
    width: 14%;
    text-align: left;
}
.results-section .rating-table tbody .accordion-table tbody tr td:nth-child(4) {
    width: 22%;
    text-align: left;
}
.results-section .rating-table tbody .accordion-table tbody tr:nth-child(odd) {
    background-color: #F5F5F7;
}
.results-section .rating-table tbody .accordion-table tbody tr:nth-child(even) {
    background: transparent;
}
.results-section .rating-table tbody .accordion-content {
    background-color: #fff;
}
.results-section .rating-table tbody .accordion-header {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}
.results-section .rating-table tbody .accordion-achievements {
    display: flex;
    gap: 32px;
    margin-bottom: 25px;
    margin-left: 146px;
}
.results-section .rating-table tbody .achievement-item {
    border: 1px solid #E1E8F0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 260px;
}
.results-section .rating-table tbody .achievement-item:last-child {
    width: 200px;
}
.results-section .rating-table tbody .achievement-text {
    font-family: "Inter";
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    color: #262626;
}
.results-section .rating-table tbody .achievement-text span {
    display: inline-block;
    margin-top: 8px;
    color: #8C8C8C;
}
.results-section .rating-table__row-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.results-section .rating-table .rating-table__athlete {
    width: 290px;
    text-align: center;
}
.results-section .achievements-toggle {
    background: none;
    border: none;
    color: #0080C7;
    cursor: pointer;
    font-family: "Inter";
    font-size: 16px;
    line-height: 16px;
    letter-spacing: 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
    position: absolute;
    bottom: 0;
    padding: 0;
}
.results-section .achievements-toggle .toggle-text {
    font-size: 16px;
    display: block;
    line-height: 16px;
}
.results-section .achievements-toggle .toggle-icon {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    position: relative;
    top: 1px;
}
.results-section .achievements-toggle img {
    margin-top: 0;
}
.results-section .achievements-toggle--inside {
    display: none;
    margin-top: 12px;
    margin-bottom: 12px;
}
.results-section .achievements-toggle:hover {
    color: #0080C7;
}
.results-section .rating-table__accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.results-section .rating-table__accordion.open {
    transition: max-height 0.5s ease-in;
    position: static;
}
.results-section .athlete {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 0 auto;
}
.results-section .athlete__avatar {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}
.results-section .athlete__info {
    width: 190px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    z-index: 2;
    position: relative;
}
.results-section .athlete__name {
    width: 100%;
    max-width: 190px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    font-family: "Inter";
    line-height: 20px;
    text-align: center;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.results-section .athlete__id {
    font-size: 16px;
    line-height: 24px;
    font-family: "Inter";
    font-weight: 400;
    letter-spacing: 0;
    color: rgba(38, 38, 38, 0.6);
    user-select: text;
}
.results-section .athlete__level {
    font-size: 16px;
    line-height: 24px;
    font-family: "Inter";
    font-weight: 400;
    letter-spacing: 0;
    color: #8C8C8C;
    margin-bottom: 24px;
}
.results-section .athlete__level span {
    color: #262626;
}
.results-section .country {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.results-section .country__flag {
    width: 50px;
    height: 34px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.results-section .country span {
    font-size: 14px;
}
.results-section .swiper-sportsmen-rating {
    width: 100%;
    height: auto;
}
.results-section .swiper-slide {
    width: 100%;
    flex-shrink: 0;
    height: auto;
}

@media (max-width: 1720px) {
    .results-section {
        max-width: 100%;
        padding: 0 60px;
    }
}
@media (max-width: 1440px) and (min-width: 1201px) {
    .results-section {
        padding: 0 60px;
    }
    .results-section .rating-table {
        min-width: 1100px;
    }
    .results-section .rating-table thead th {
        padding: 18px 12px;
        font-size: 16px;
        line-height: 24px;
    }
    .results-section .rating-table thead th:first-child {
        border-left: 2px solid #BF9932;
    }
    .results-section .rating-table thead th:first-child {
        left: 44px;
    }
    .results-section .rating-table thead th:last-child {
        border-right: 2px solid #BF9932;
    }
    .results-section .rating-table tbody td {
        padding: 20px 12px;
        font-size: 14px;
        line-height: 20px;
    }
    .results-section .rating-table .athlete {
        gap: 12px;
    }
    .results-section .rating-table .athlete__avatar {
        width: 82px;
        height: 82px;
    }
    .results-section .rating-table .athlete__info {
        gap: 6px;
    }
    .results-section .rating-table .athlete__name {
        font-size: 14px;
        line-height: 18px;
    }

    .results-section .rating-table .athlete__id,
    .results-section .rating-table .athlete__level {
        font-size: 14px;
        line-height: 20px;
    }
    .results-section .rating-table .country__flag {
        width: 44px;
        height: 30px;
    }
    .results-section .rating-table .country span {
        font-size: 14px;
        line-height: 20px;
    }
    .results-section .rating-table .achievements-toggle {
        font-size: 14px;
        line-height: 16px;
    }
    .results-section .rating-table .achievements-toggle .toggle-text {
        font-size: 14px;
        line-height: 16px;
    }
    .results-section .rating-table .achievements-toggle .toggle-icon {
        width: 11px;
        height: 11px;
    }
}
@media (max-width: 1340px) {
    .results-section {
        padding: 0 60px;
    }
    .results-section .rating-table {
        min-width: 1000px;
    }
    .results-section .rating-table thead th {
        padding: 14px 10px;
        font-size: 15px;
        line-height: 22px;
    }
    .results-section .rating-table tbody td {
        padding: 16px 10px;
        font-size: 14px;
        line-height: 20px;
    }
    .results-section .rating-table thead th:first-child {
        border-left: 2px solid #BF9932;
    }
    .results-section .rating-table thead th:first-child {
        left: 40px;
    }
    .results-section .rating-table thead th:last-child {
        border-right: 2px solid #BF9932;
    }
    .results-section .rating-table .athlete {
        gap: 10px;
    }
    .results-section .rating-table .athlete__avatar {
        width: 76px;
        height: 76px;
    }
    .results-section .rating-table .athlete__name {
        font-size: 14px;
        line-height: 18px;
    }

    .results-section .rating-table .athlete__id,
    .results-section .rating-table .athlete__level {
        font-size: 14px;
        line-height: 20px;
    }
    .results-section .rating-table .country__flag {
        width: 42px;
        height: 28px;
    }
}
@media (max-width: 1200px) {
    .results-section {
        padding: 0 40px;
    }

    .results-section .achievements-toggle .toggle-text {
        font-size: 14px;
        display: block;
        line-height: 14px;
    }
}

@media (max-width: 767px) {
    .results-section {
        margin-top: 2px;
    }
    .results-section .mobile-result__title {
        display: block;
    }
    .results-section .rating-table {
        min-width: auto;
        border-bottom: none;
    }
    .results-section .rating-table thead {
        display: none;
    }
    .results-section .rating-table thead th:first-child {
        position: relative;
        left: 38px;
    }
    .results-section .rating-table tbody tr {
        border-bottom: none;
    }
    .results-section .swiper-sportsmen-rating,
    .results-section .swiper-wrapper,
    .results-section .swiper-slide,
    .results-section .rating-table__row--mobile,
    .results-section .rating-table__accordion--mobile {
        width: 100% !important;
        max-width: 100%;
    }
    .results-section .swiper-slide {
        display: flex;
        justify-content: center;
        box-sizing: border-box;
    }
    .results-section .rating-table__row--mobile {
        display: table-row;
        width: 100%;
    }
    .results-section .rating-table__row--mobile td {
        display: table-cell;
        width: 100%;
    }
    .results-section .rating-table__row--mobile:hover {
        background: transparent !important;
    }
    .results-section .rating-table__row--mobile:has(+ .rating-table__accordion--mobile.open) .athlete-mobile {
        border-bottom: none;
    }
    .results-section .rating-table__accordion--mobile.open .event:last-child {
        border-bottom: none;
    }
    .results-section .rating-table__accordion--mobile.open + .rating-table__row--mobile .athlete-mobile {
        border-top: none;
    }
    .results-section .athlete-mobile {
        display: flex;
        gap: 16px;
        padding: 12px 0 16px;
        margin-bottom: -32px;
        border-top: 1px solid #E1E8F0;
        border-bottom: 1px solid #E1E8F0;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .results-section .rating-table__row--mobile.no-top-border-next .athlete-mobile {
        border-top: none;
    }
    .results-section .athlete-mobile__avatar {
        position: relative;
        margin-top: 2px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .results-section .athlete-mobile__avatar img:nth-child(1) {
        width: 74px;
        height: 74px;
        border-radius: 50%;
        object-fit: cover;
    }
    .results-section .athlete-mobile__avatar img:nth-child(2) {
        width: 40px;
        height: auto;
        box-shadow: 4px 2px 4px 0 rgba(0, 0, 0, 0.2509803922);
    }
    .results-section .athlete-mobile__avatar::after {
        content: attr(data-rank);
        position: absolute;
        top: 15px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        font-family: "Oswald";
        font-weight: 600;
        font-size: 36px;
        line-height: 44px;
        letter-spacing: 0;
        text-align: center;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.8);
        padding: 0 6px;
        border-radius: 2px;
    }
    .results-section .athlete-mobile__info {
        flex: 1;
        font-size: 12px;
        font-family: "DM Sans", sans-serif;
        line-height: 16px;
        font-weight: 400;
        letter-spacing: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: left;
    }
    .results-section .athlete__name {
        color: #262626;
        font-weight: 500;
    }
    .results-section .athlete-mobile__year {
        color: #8C8C8C;
    }
    .results-section .athlete__level {
        margin-bottom: 0;
    }
    .results-section .athlete-mobile__grey-p {
        color: #8C8C8C;
        text-align: left;
    }
    .results-section .athlete-mobile__grey-p span {
        color: #262626;
    }
    .results-section .athlete__club {
        color: #8C8C8C;
        font-family: "DM Sans", sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0;
        text-align: left;
    }
    .results-section .achievements-toggle {
        font-size: 12px;
        background: none;
        border: none;
        color: #1e88e5;
        font-weight: 400;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        position: static;
        padding: 0;
        line-height: 16px;
    }
    .results-section .achievements-toggle .toggle-text {
        font-size: 12px;
        display: block;
        line-height: 16px;
    }
    .results-section .achievements-toggle .toggle-icon {
        display: block;
        width: 6px;
        height: 4px;
        flex-shrink: 0;
        margin-top: 0;
    }
    .results-section .achievements-toggle img {
        margin-bottom: 1px;
    }
    .results-section .accordion-toggle-container {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        margin-top: 8px;
    }
    .results-section .achievements-toggle--inside {
        display: inline-flex;
        position: static;
        margin: 0;
    }
    .results-section .rating-table__accordion {
        display: none;
    }
    .results-section .rating-table__accordion.open {
        display: table-row;
    }
    .results-section .rating-table__accordion--mobile {
        display: none;
        min-width: 350px;
        max-width: 500px;
        text-align: left;
    }
    .results-section .rating-table__accordion--mobile.open {
        display: table-row;
    }
    .results-section .rating-table__accordion--mobile td {
        display: table-cell;
        padding: 0 16px;
        border: none;
        width: 100%;
    }
    .results-section .accordion-content {
        background: #fff;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    .results-section .accordion-badges {
        display: grid;
        gap: 10px;
    }
    .results-section .badge {
        border: 1px solid #E1E8F0;
        border-radius: 0;
        padding: 10px 12px;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0;
        font-weight: 400;
        font-family: "DM Sans", sans-serif;
        text-align: center;
        color: #262626;
    }
    .results-section .accordion-year {
        margin-top: 28px;
        font-family: "DM Sans", sans-serif;
        font-weight: 500;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0;
        text-align: left;
        color: #0080C7;
    }
    .results-section .accordion-events {
        display: grid;
        gap: 0;
    }
    .results-section .event {
        padding-top: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #E1E8F0;
    }
    .results-section .rating-table__accordion--mobile.open .accordion-events:last-of-type .event:last-child {
        border-bottom: none;
    }
    .results-section .event-title {
        font-family: "DM Sans", sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0;
        color: #262626;
        text-align: left;
        margin-bottom: 8px;
    }
    .results-section .event-info {
        display: flex;
        flex-wrap: wrap;
        column-gap: 26px;
        row-gap: 4px;
        font-family: "DM Sans", sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0;
        color: #8C8C8C;
    }
    .results-section .event-info span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .results-section .event-info b {
        color: #262626;
        font-family: "DM Sans", sans-serif;
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: 0;
        text-align: center;
    }
    .results-section .accordion-events .event:first-child .event-info b {
        color: #0080C7;
    }

    .results-section .rating-table__row:not(.rating-table__row--mobile),
    .results-section .rating-table__accordion:not(.rating-table__accordion--mobile) {
        display: none;
    }
}
@media (max-width: 1024px) {
    .results-section {
        padding: 0 16px;
    }
}
@media (max-width: 1023px) and (min-width: 768px) {
    .results-section {
        padding: 0 24px;
        margin-top: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .results-section .rating-table {
        min-width: 860px;
        width: 100%;
    }
    .results-section .rating-table thead th {
        padding: 10px 12px;
        font-size: 14px;
        line-height: 20px;
    }
    .results-section .rating-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 18px;
    }
    .results-section .rating-table .athlete__avatar {
        width: 72px;
        height: 72px;
    }
    .results-section .rating-table .athlete__name {
        font-size: 13px;
        line-height: 17px;
    }

    .results-section .rating-table .athlete__id,
    .results-section .rating-table .athlete__level {
        font-size: 13px;
        line-height: 18px;
    }
    .results-section .achievements-toggle {
        font-size: 13px;
        line-height: 14px;
    }
    .results-section .achievements-toggle .toggle-icon {
        width: 10px;
        height: 10px;
        top: 1px;
    }
    .results-section .rating-table__row--mobile,
    .results-section .rating-table__accordion--mobile {
        display: none !important;
    }
}
@media (min-width: 768px) {
    .rating-table__row--mobile,
    .rating-table__accordion--mobile {
        display: none;
    }
    .rating-table {
        min-width: 1200px;
        width: 100%;
    }
    .results-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.results-section .rating-table__club-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 24px;
    max-height: 48px;
    text-align: center;
    margin: 0 auto;
    max-width: 180px;
}

.results-section .rating-table__club-text--mobile {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 16px;
    max-height: 32px;
    text-align: left;
    max-width: 100%;
}

.results-section .rating-table__accordion td,
.results-section .rating-table__accordion--mobile td,
.results-section .accordion-content,
.results-section .accordion-achievements,
.results-section .achievement-item,
.results-section .achievement-text,
.results-section .achievement-text p,
.results-section .accordion-badges,
.results-section .badge,
.results-section .badge span {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.results-section .accordion-achievements {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 32px;
}

.results-section .achievement-item {
    width: 260px;
    max-width: 260px;
    flex: 0 0 260px;
    overflow: hidden;
}

.results-section .achievement-item:last-child {
    width: 200px;
    max-width: 200px;
    flex: 0 0 200px;
}

.results-section .achievement-text {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.results-section .badge {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

@media (max-width: 767px) {
    .results-section .accordion-achievements {
        gap: 10px;
    }

    .results-section .achievement-item,
    .results-section .achievement-item:last-child {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* ===== LIN page fixes ===== */

.rating-sportsmen--lin .results-section .athlete__info {
    padding-bottom: 28px;
}

.rating-sportsmen--lin .results-section .athlete__id {
    margin-top: 2px;
    margin-bottom: 0;
}

.rating-sportsmen--lin .results-section .athlete__avatar {
    width: 68px;
    height: 68px;
}

.rating-sportsmen--lin .results-section .athlete {
    gap: 10px;
}

@media (max-width: 1440px) {
    .rating-sportsmen--lin .results-section .athlete__avatar {
        width: 72px;
        height: 72px;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .rating-sportsmen--lin .results-section .athlete__avatar {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 767px) {
    .rating-sportsmen--lin .results-section .athlete-mobile__avatar img:nth-child(1) {
        width: 66px;
        height: 66px;
    }

    .rating-sportsmen--lin .results-section .athlete-mobile__avatar::after {
        top: 12px;
        font-size: 30px;
        line-height: 36px;
    }

    .rating-sportsmen--lin .results-section .athlete-mobile__avatar img:nth-child(2) {
        width: 36px;
    }
}

/* ===== compact pagination only for LIN ===== */

/*.rating-sportsmen--lin .rating-pagination--compact {*/
/*    margin-top: 32px;*/
/*}*/

/*.rating-sportsmen--lin .rating-pagination--compact .footer__control {*/
/*    width: fit-content;*/
/*    margin-top: 10px;*/
/*    margin-left: auto;*/
/*    margin-right: 0;*/
/*    justify-content: flex-start;*/
/*    gap: 46px;*/
/*}*/

/*.rating-sportsmen--lin .rating-pagination--compact .swiper-pagination-sportsmen-rating {*/
/*    flex: 0 0 auto;*/
/*    gap: 45px;*/
/*}*/

/*.rating-sportsmen--lin .rating-pagination--compact .arrow {*/
/*    flex: 0 0 auto;*/
/*}*/

/*@media (max-width: 480px) {*/
/*    .rating-sportsmen--lin .rating-pagination--compact {*/
/*        margin-top: 24px;*/
/*    }*/

/*    .rating-sportsmen--lin .rating-pagination--compact .footer__control {*/
/*        gap: 12px;*/
/*    }*/

/*    .rating-sportsmen--lin .rating-pagination--compact .swiper-pagination-sportsmen-rating {*/
/*        gap: 6px;*/
/*    }*/
/*}*/

/* ===== Placeholder for missing athlete photo ===== */

/* ===== Athlete avatar placeholder fixes ===== */

/* desktop placeholder */
.results-section .athlete.athlete--placeholder::before,
.results-section .athlete:not(:has(.athlete__avatar))::before {
    content: "";
    display: block;
    width: 94px;
    height: 94px;
    flex: 0 0 94px;
    border-radius: 50%;
    background: #E1E8F0;
    border: 1px solid rgba(38, 38, 38, 0.16);
}

/* mobile avatar container */
.results-section .athlete-mobile__avatar {
    width: 74px;
    min-width: 74px;
    flex: 0 0 74px;
}

/* mobile normal image */
.results-section .athlete-mobile__avatar > img:first-child {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* mobile placeholder */
.results-section .athlete-mobile__avatar.athlete-mobile__avatar--placeholder::before,
.results-section .athlete-mobile__avatar:not(:has(> img))::before {
    content: "";
    display: block;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #E1E8F0;
    border: 1px solid rgba(38, 38, 38, 0.16);
}

/* rank over real photo */
.results-section .athlete-mobile__avatar::after {
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    display: none;
}

/* rank over placeholder */
.results-section .athlete-mobile__avatar.athlete-mobile__avatar--placeholder::after,
.results-section .athlete-mobile__avatar:not(:has(> img))::after {
    color: rgba(38, 38, 38, 0.72);
    text-shadow: none;
}

/* flag must stay below avatar */
.results-section .athlete-mobile__avatar .country__flag {
    position: relative;
    z-index: 3;
}

/* responsive desktop placeholder sizes */
@media (max-width: 1440px) and (min-width: 1201px) {
    .results-section .athlete.athlete--placeholder::before,
    .results-section .athlete:not(:has(.athlete__avatar))::before {
        width: 82px;
        height: 82px;
        flex-basis: 82px;
    }
}

@media (max-width: 1340px) {
    .results-section .athlete.athlete--placeholder::before,
    .results-section .athlete:not(:has(.athlete__avatar))::before {
        width: 76px;
        height: 76px;
        flex-basis: 76px;
    }
}

@media (max-width: 1023px) and (min-width: 768px) {
    .results-section .athlete.athlete--placeholder::before,
    .results-section .athlete:not(:has(.athlete__avatar))::before {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
}

/* LIN variant */
.rating-sportsmen--lin .results-section .athlete.athlete--placeholder::before,
.rating-sportsmen--lin .results-section .athlete:not(:has(.athlete__avatar))::before {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
}

@media (max-width: 767px) {
    .rating-sportsmen--lin .results-section .athlete-mobile__avatar {
        width: 66px;
        min-width: 66px;
        flex-basis: 66px;
    }

    .rating-sportsmen--lin .results-section .athlete-mobile__avatar > img:first-child,
    .rating-sportsmen--lin .results-section .athlete-mobile__avatar.athlete-mobile__avatar--placeholder::before,
    .rating-sportsmen--lin .results-section .athlete-mobile__avatar:not(:has(> img))::before {
        width: 66px;
        height: 66px;
    }
}


/* ===== Спортивные уровни в достижениях ===== */

.results-section .sport-level-badge__title {
    margin-bottom: 8px;
    font-family: "Inter";
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #262626;
    text-align: center;
}

.results-section .sport-level-badge__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.results-section .sport-level-badge__item {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 0;
    width: 100%;
}

.results-section .sport-level-badge__image {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}

.results-section .sport-level-badge__name {
    margin: 0 !important;
    color: #262626 !important;
    font-family: "Inter";
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    text-align: left;
}


/* ===== mobile ===== */

/* ===== Спортивные уровни: desktop ===== */

@media (min-width: 768px) {

    /*
     * Максимальная ширина равна исходным трём карточкам:
     * 260 + 32 + 260 + 32 + 200 = 784px.
     *
     * При сужении экрана контейнер уменьшается сам,
     * нижние карточки продолжают переноситься как раньше.
     */
    .results-section .accordion-achievements {
        width: calc(100% - 146px);
        max-width: 784px;
    }

    /*
     * Уровень занимает всю текущую ширину
     * контейнера достижений.
     */
    .results-section
    .accordion-achievements
    .achievement-item--sport-level {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /*
     * На desktop уровни идут в линию.
     */
    .results-section
    .achievement-item--sport-level
    .sport-level-badge__list {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    .results-section
    .achievement-item--sport-level
    .sport-level-badge__item {
        width: auto;
        flex: 0 1 auto;
        justify-content: flex-start;
    }
}

@media (max-width: 923px) and (min-width: 768px) {

    .results-section
    .accordion-achievements
    .achievement-item--sport-level {
        width: 100%;
        max-width: calc(100vw - 194px);
        flex: 0 1 100%;
        min-width: 0;
    }
}

@media (max-width: 767px) {

    .achievement-item--sport-level {
        margin-top: 10px;
    }

    .results-section .badge--sport-level {
        width: 100%;
        max-width: 100%;
    }

    .results-section .sport-level-badge__title {
        margin-bottom: 6px;
        font-family: "DM Sans", sans-serif;
        font-size: 12px;
        line-height: 16px;
    }

    .results-section .sport-level-badge__item {
        gap: 8px;
    }

    .results-section .sport-level-badge__image {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .results-section .sport-level-badge__name {
        font-family: "DM Sans", sans-serif;
        font-size: 12px;
        line-height: 16px;
    }
}

@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-Regular.ttf);
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-Medium.ttf);
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-SemiBold.ttf);
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url(../fonts/Dm-Sans/DMSans_18pt-Bold.ttf);
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-Bold.ttf);
    font-weight: 700;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-SemiBold.ttf);
    font-weight: 600;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-Medium.ttf);
    font-weight: 500;
}
@font-face {
    font-family: "Inter";
    src: url(../fonts/Inter/Inter_18pt-Regular.ttf);
    font-weight: 400;
}
@font-face {
    font-family: "Oswald";
    src: url(../fonts/Oswald/Oswald-Medium.ttf);
    font-weight: 500;
}
@font-face {
    font-family: "Oswald";
    src: url(../fonts/Oswald/Oswald-SemiBold.ttf);
    font-weight: 600;
}
@font-face {
    font-family: "Oswald";
    src: url(../fonts/Oswald/Oswald-Bold.ttf);
    font-weight: 700;
}