/* ==========================================================================
   documenti — юридические страницы сайта
   ========================================================================== */

#rl-documenti-wrapper.rl-documenti-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px 20px 10px;
    box-sizing: border-box;
    color: #202124;
}

#rl-documenti-wrapper.rl-documenti-has-bottom-nav {
    padding-bottom: 0;
}

/* Навигационные кнопки */
#rl-documenti-wrapper .rl-documenti-nav-grid,
#rl-documenti-wrapper .rl-documenti-bottom-nav-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}

#rl-documenti-wrapper .rl-documenti-nav-left {
    text-align: left;
}

#rl-documenti-wrapper .rl-documenti-nav-center {
    text-align: center;
}

#rl-documenti-wrapper .rl-documenti-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #ffffff !important;
    color: #6B7280 !important;
    border: 2px solid #6B7280 !important;
    border-radius: 10px !important;
    padding: 5px 10px !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1) !important;
    transition: background-color 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s !important;
    line-height: 1 !important;
}

@media (hover: hover) {
    #rl-documenti-wrapper .rl-documenti-btn:hover {
        background-color: #E6E9ED !important;
        border-color: #202124 !important;
        color: #202124 !important;
        box-shadow: none !important;
    }
}

#rl-documenti-wrapper .rl-documenti-btn.is-clicked {
    pointer-events: none !important;
    filter: brightness(0.8) !important;
    box-shadow: none !important;
}

#rl-documenti-wrapper .rl-documenti-arrow-down {
    display: inline-block;
    transform: rotate(-90deg);
    font-size: 18px;
    line-height: 1;
}

#rl-documenti-wrapper .rl-documenti-arrow-up {
    display: inline-block;
    transform: rotate(90deg);
    font-size: 18px;
    line-height: 1;
}

/* Основная карточка */
#rl-documenti-wrapper .rl-documenti-card {
    background: #ffffff;
    border: 1px solid #D7DCE2;
    border-radius: 10px;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

#rl-documenti-wrapper .rl-documenti-card h1 {
    margin: 0 0 14px 0;
    color: #202124;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

/* Весь обычный текст — единый спокойный стиль */
#rl-documenti-wrapper .rl-documenti-card p,
#rl-documenti-wrapper .rl-documenti-info-label,
#rl-documenti-wrapper .rl-documenti-info-value,
#rl-documenti-wrapper .rl-documenti-note {
    color: #202124;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

#rl-documenti-wrapper .rl-documenti-card p {
    margin: 0 0 12px 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

#rl-documenti-wrapper .rl-documenti-card p:last-child {
    margin-bottom: 0;
}

#rl-documenti-wrapper .rl-documenti-card a {
    color: #0066CD;
    text-decoration: none;
    font-weight: 400;
}

#rl-documenti-wrapper .rl-documenti-card a:hover {
    color: #00468D;
    text-decoration: underline;
}

/* Список реквизитов */
#rl-documenti-wrapper .rl-documenti-info-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

#rl-documenti-wrapper .rl-documenti-info-row {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    column-gap: 28px;
    row-gap: 4px;
    align-items: start;
    background: #F8FAFC;
    border: 1px solid #D7DCE2;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
}

#rl-documenti-wrapper .rl-documenti-info-label {
    text-align: left;
}

#rl-documenti-wrapper .rl-documenti-info-value {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    overflow-wrap: break-word;
}

#rl-documenti-wrapper .rl-documenti-info-value > div {
    text-align: inherit;
    hyphens: inherit;
    -webkit-hyphens: inherit;
    -ms-hyphens: inherit;
    overflow-wrap: inherit;
}

#rl-documenti-wrapper .rl-documenti-info-value a {
    white-space: nowrap;
}

/* Синяя информационная плашка */
#rl-documenti-wrapper .rl-documenti-note {
    background: #F0F6FF;
    border-left: 4px solid #0066CD;
    border-radius: 10px;
    padding: 10px;
    margin: 14px 0;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    box-sizing: border-box;
}

#rl-documenti-wrapper .rl-documenti-note a {
    color: #0066CD;
    text-decoration: none;
    font-weight: 400;
    white-space: nowrap;
}

#rl-documenti-wrapper .rl-documenti-note a:hover {
    color: #00468D;
    text-decoration: underline;
}

/* Мобильная версия */
@media (max-width: 600px) {
    .ast-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #rl-documenti-wrapper.rl-documenti-page {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 0 16px 0 !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

#rl-documenti-wrapper.rl-documenti-has-bottom-nav {
    padding-bottom: 0 !important;
}

    #rl-documenti-wrapper .rl-documenti-nav-grid,
    #rl-documenti-wrapper .rl-documenti-bottom-nav-grid {
    	margin-top: 10px;
    	margin-bottom: 10px;
    	padding: 0;
    }

    #rl-documenti-wrapper .rl-documenti-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px;
        border-radius: 10px;
        box-sizing: border-box !important;
    }

    #rl-documenti-wrapper .rl-documenti-card h1 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    #rl-documenti-wrapper .rl-documenti-card p,
    #rl-documenti-wrapper .rl-documenti-info-label,
    #rl-documenti-wrapper .rl-documenti-info-value,
    #rl-documenti-wrapper .rl-documenti-note {
        font-size: 16px;
        font-weight: 400;
    }

#rl-documenti-wrapper .rl-documenti-info-label {
    font-weight: 600;
}

#rl-documenti-wrapper .rl-documenti-info-value {
    font-weight: 400;
}

    #rl-documenti-wrapper .rl-documenti-info-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 10px;
}

    #rl-documenti-wrapper .rl-documenti-note {
        padding: 10px;
    }
}