/* Оформление юридических документов внутри модальных окон акции */

.ny-doc {
    font-family: 'Cormorant Infant', serif;
    color: #3e2723;
    font-size: 17px;
    line-height: 1.65;
}

.ny-doc .doc-head {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 22px;
    border-bottom: 2px solid rgba(139, 90, 43, 0.35);
}

.ny-doc .doc-kicker {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b5a2b;
    margin: 0 0 6px;
}

.ny-doc .doc-title {
    font-family: 'Marck Script', cursive;
    font-size: 32px;
    line-height: 1.1;
    color: #2b5d8a;
    margin: 0 0 8px;
}

.ny-doc .doc-meta {
    font-size: 14px;
    font-style: italic;
    color: #6d4c41;
    margin: 2px 0;
}

.ny-doc h3 {
    font-family: 'Cormorant Infant', serif;
    font-size: 21px;
    font-weight: 700;
    color: #5d4037;
    text-align: left;
    margin: 28px 0 12px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(139, 90, 43, 0.35);
}

.ny-doc h3:first-child {
    margin-top: 0;
}

.ny-doc p {
    margin: 0 0 12px;
    text-align: justify;
    hyphens: auto;
}

.ny-doc .doc-sub {
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px;
}

.ny-doc .doc-sub:first-of-type {
    margin-top: 4px;
}

.ny-doc ul.doc-list {
    margin: 0 0 14px;
    padding-left: 26px;
}

.ny-doc ul.doc-list li {
    margin-bottom: 6px;
}

.ny-doc .doc-sign {
    text-align: center;
    margin: 18px 0 2px;
    white-space: nowrap;
}

.ny-doc .doc-sign-note {
    text-align: center;
    font-size: 13px;
    color: #6d4c41;
    margin: 0 0 10px;
}

.ny-doc h3[id^="prilozhenie-"] {
    scroll-margin-top: 10px;
}

@media (max-width: 768px) {
    .ny-doc {
        font-size: 16px;
    }

    .ny-doc .doc-title {
        font-size: 26px;
    }

    .ny-doc h3 {
        font-size: 19px;
    }

    .ny-doc .doc-sign {
        white-space: normal;
        word-break: break-all;
    }
}
