* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f5f5f5;
    position: relative;
    min-height: 100vh;
}

.demo-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 180px;
    font-weight: 900;
    color: rgba(255, 0, 0, 0.08);
    z-index: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: 20px;
}

.header {
    background: white;
    border-bottom: 2px solid #e0e0e0;
    padding: 20px;
    position: relative;
    z-index: 10;
    display: none;
}

.document-section {
    background: white;
    padding: 30px 20px;
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

.document-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 3px solid #C41E3A;
    margin-bottom: 30px;
}

.doc-coat {
    width: 60px;
    height: auto;
}

.doc-title h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.doc-title h1 strong {
    font-weight: 900;
}

.doc-title p {
    font-size: 16px;
    color: #666;
    margin: 2px 0 0 0;
}

.document-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.8;
    color: #111;
}

.doc-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 30px 0 15px 0;
}

.doc-paragraph {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 15px;
    line-height: 1.7;
}

.doc-paragraph strong {
    font-weight: 700;
}

.doc-list {
    margin: 10px 0 15px 20px;
    font-size: 15px;
}

.doc-list li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.scroll-indicator {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
}

.scroll-arrow {
    font-size: 48px;
    color: #C41E3A;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-size: 16px;
    color: #666;
    margin-top: 15px;
    font-family: 'Roboto', Arial, sans-serif;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.header-content {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.coat-of-arms img {
    width: 60px;
    height: auto;
}

.header-text h1 {
    color: #C41E3A;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 2px;
}

.header-text p {
    color: #C41E3A;
    font-size: 14px;
}

.main-content {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
    background: white;
}

.main-content::before {
    content: '';
    display: block;
    width: 100%;
    padding: 30px 0 20px;
    background: white;
}

.payment-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #C41E3A;
}

.payment-header-coat {
    width: 60px;
    height: auto;
}

.payment-header-text h2 {
    color: #C41E3A;
    font-size: 20px;
    margin: 0;
}

.payment-header-text p {
    color: #666;
    font-size: 14px;
    margin: 2px 0 0 0;
}

.title {
    color: #C41E3A;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.service-name {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 25px;
}

.form-container {
    background: white;
    border: 2px solid #C41E3A;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    margin-bottom: 20px;
    opacity: 0.85;
}


.form-field {
    margin-bottom: 15px;
}

.form-field label {
    display: block;
    color: #C41E3A;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
}

.input-wrapper {
    display: flex;
    gap: 8px;
}

.form-field input {
    flex: 1;
    background: #FFE6E6;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    color: #333;
    cursor: text;
}

.form-field input:focus {
    outline: 2px solid #C41E3A;
    outline-offset: 1px;
}

.copy-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

.warning-btn {
    width: 100%;
    background: #FFC107;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.warning-btn:hover {
    background: #FFB300;
}

.instruction-text {
    color: #C41E3A;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.instruction-subtext {
    color: #666;
    font-size: 12px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(180deg, #8B1A1A 0%, #6B0A0A 100%);
    border: none;
    border-radius: 6px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background 0.3s ease, transform 0.1s;
}

.submit-btn:hover {
    background: linear-gradient(180deg, #A02020 0%, #7B1010 100%);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    gap: 20px;
}

.protected-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border: 2px solid #C41E3A;
    border-radius: 25px;
    background: white;
}

.protected-coat {
    width: 40px;
    height: auto;
}

.protected-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pago-title {
    color: #C41E3A;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.banco-small {
    color: #333;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
}

.decreto-text {
    color: #666;
    font-size: 8px;
    line-height: 1.1;
}

.banco-logo {
    text-align: right;
}

.banco-logo strong {
    display: block;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.banco-logo small {
    display: block;
    color: #666;
    font-size: 11px;
    font-weight: 400;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header-content {
    display: flex;
    gap: 12px;
    align-items: center;
}

.warning-icon {
    font-size: 32px;
}

.modal-title h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.modal-title p {
    margin: 5px 0 0 0;
    font-size: 13px;
    opacity: 0.95;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.important-box {
    background: #FFF8DC;
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.important-icon {
    font-size: 24px;
}

.important-text {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

.important-text strong {
    color: #C41E3A;
}

.instruction-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    background: #C41E3A;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.step-content p {
    margin: 6px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.banks-list {
    color: #666;
    font-size: 12px;
}

.warning-note {
    background: #FFE6E6;
    border-left: 3px solid #C41E3A;
    padding: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #C41E3A;
    line-height: 1.5;
}

.help-note {
    background: #FFF8DC;
    border-left: 3px solid #FFD700;
    padding: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.transfer-box {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
}

.concept-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 8px;
}

.transfer-button {
    background: #4CAF50;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}

.modal-btn {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    background: #C41E3A;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-btn:hover {
    background: #8B0000;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .demo-watermark {
        font-size: 80px;
        letter-spacing: 10px;
    }

    /* Документ */
    .document-section {
        padding: 20px 15px;
    }

    .document-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .doc-coat {
        width: 50px;
    }

    .doc-title h1 {
        font-size: 20px;
    }

    .doc-title p {
        font-size: 14px;
    }

    .document-content {
        padding: 0 10px;
    }

    .doc-section-title {
        font-size: 18px;
    }

    .doc-paragraph {
        font-size: 14px;
    }

    .doc-list {
        font-size: 14px;
        margin-left: 15px;
    }

    .scroll-arrow {
        font-size: 36px;
    }

    .scroll-indicator p {
        font-size: 14px;
    }

    /* Форма оплаты */
    .main-content {
        padding: 30px 15px;
    }

    .payment-header {
        flex-direction: column;
        gap: 10px;
    }

    .payment-header-coat {
        width: 50px;
    }

    .payment-header-text h2 {
        font-size: 18px;
    }

    .payment-header-text p {
        font-size: 13px;
    }

    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 13px;
    }

    .service-name {
        font-size: 13px;
    }

    .form-container {
        padding: 15px;
    }

    .form-field label {
        font-size: 12px;
    }

    .form-field input {
        font-size: 13px;
        padding: 9px 10px;
    }

    .copy-btn {
        padding: 7px 10px;
        font-size: 14px;
    }

    .warning-btn {
        font-size: 14px;
        padding: 11px;
    }

    .instruction-text {
        font-size: 12px;
    }

    .instruction-subtext {
        font-size: 11px;
    }

    .instruction-subtext br {
        display: none;
    }

    .submit-btn {
        font-size: 15px;
        padding: 14px;
    }

    /* Футер */
    .footer-logos {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .protected-logo {
        padding: 8px 12px;
    }

    .protected-coat {
        width: 35px;
    }

    .pago-title {
        font-size: 12px;
    }

    .banco-small {
        font-size: 8px;
    }

    .decreto-text {
        font-size: 7px;
    }

    .banco-logo strong {
        font-size: 12px;
    }

    .banco-logo small {
        font-size: 10px;
    }

    /* Модальное окно */
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-height: 85vh;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .warning-icon {
        font-size: 28px;
    }

    .modal-title h3 {
        font-size: 18px;
    }

    .modal-title p {
        font-size: 12px;
    }

    .close-btn {
        font-size: 28px;
    }

    .modal-body {
        padding: 15px;
    }

    .important-box {
        flex-direction: column;
        padding: 12px;
    }

    .instruction-step {
        flex-direction: column;
        gap: 10px;
    }

    .step-content h4 {
        font-size: 15px;
    }

    .step-content p {
        font-size: 12px;
    }

    .modal-btn {
        font-size: 15px;
        padding: 12px;
    }
}

/* Адаптивность для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .document-content {
        max-width: 700px;
    }

    .main-content {
        max-width: 600px;
    }
}

/* Адаптивность для ПК */
@media (min-width: 1025px) {
    .document-section {
        padding: 40px 30px;
    }

    .document-content {
        max-width: 900px;
        font-size: 16px;
    }

    .doc-section-title {
        font-size: 22px;
    }

    .doc-paragraph {
        font-size: 16px;
    }

    .main-content {
        max-width: 550px;
        padding: 50px 30px;
    }

    .form-container {
        padding: 25px;
    }

    .modal-content {
        max-width: 700px;
    }

    .demo-watermark {
        font-size: 200px;
    }
}