.participate-rules {
    max-height: 300px; /* Используем max-height вместо height */
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
    -webkit-overflow-scrolling: touch; /* Для smooth scroll на iOS */
    overscroll-behavior: contain; /* Предотвращает bounce эффект */
}

.participate-rules h1{
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.participate-rules h2{
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.participate-rules p{
    font-size: 16px;
    margin-bottom: 10px;
}

.participate-rules ul{
    font-size: 16px;
    margin-bottom: 10px;
}

.memory-box img {
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    touch-action: pan-y; /* Разрешаем вертикальную прокрутку */
}

.content-box{
    max-width: 80%;
    margin: 0 auto;
    padding: 10px;
}

.sponsors__sponsor_item {
    padding: 10px;
    margin-bottom: 10px;
}

.sponsors__sponsor_item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sponsors-page .sponsors-page__logo{
}

.sponsors-page img {
    display: block;
    margin: 0 auto;
    max-width: 300px;
}

.sponsors-page h2 {
    text-align: center;
}

.sponsors-page .sponsors-page__title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.sponsors-page .sponsors-page__content {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.certificate-page .element-box {
    padding: 20px;
    margin: 0 auto;
    border: 1px solid #ccc;
}

.certificate-page .list-item {
    padding-bottom: 10px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participate-page form {
    line-height: 1.5;
}
.participate-page input[type=checkbox] {
    display: block;
}

.controls-below-table {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.table-records-info {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
}

.table-records-pages ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.table-records-pages li {
    display: inline-flex;
}

.table-records-pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.table-records-pages a:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #3E4B5B;
}

.table-records-pages a.current {
    background-color: #3E4B5B;
    color: white;
    border-color: #3E4B5B;
    box-shadow: 0 2px 4px rgba(62, 75, 91, 0.15);
}

.table-records-pages a.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem;
    border-top: 1px solid #eaeaea;
}

.pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
}

.pagination-nav {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.pagination-item {
    display: inline-flex;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 1rem;
    border-radius: 0.5rem;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pagination-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.pagination-link.current {
    background-color: #3E4B5B;
    color: white;
    border-color: #3E4B5B;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.pagination-prev,
.pagination-next {
    padding: 0 1.25rem;
}

.pagination-ellipsis {
    align-items: center;
    padding: 0 0.5rem;
    color: #9ca3af;
}

@media (max-width: 640px) {
    .pagination-link {
        min-width: 2.5rem;
        height: 2.5rem;
        padding: 0 0.75rem;
    }

    .pagination-prev,
    .pagination-next {
        padding: 0 0.75rem;
    }
}

.white__section {
    display: flex;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}