/* =========================
   ÎÁÙÈÅ ÑÒÈËÈ
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #F5F5F5;
    color: #333;
}

a,
button,
.upload-zone,
.tool-card,
.result-card {
    transition: all 0.3s ease;
}

button {
    font: inherit;
}

.hidden {
    display: none !important;
}


/* =========================
   ØÀÏÊÀ
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 12px 40px;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf0;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.08);
}


/* ËÎÃÎÒÈÏ */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: #2B579A;
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}

    .logo i {
        font-size: 21px;
    }


/* =========================
   ÌÅÍÞ
========================= */

.navbar {
    margin-left: 30px;
}

    .navbar ul {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .navbar li {
        margin: 0;
        padding: 0;
    }


    /* ÎÁÛ×ÍÀß ÊÍÎÏÊÀ ÌÅÍÞ */

    .navbar a {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 40px;
        padding: 8px 13px;
        border: 1px solid #d8e1ec;
        border-radius: 6px;
        background: linear-gradient( 180deg, #ffffff 0%, #f8fafc 100% );
        color: #364152;
        text-decoration: none;
        font-size: 0.96rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
        transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }


        /* ÈÊÎÍÊÀ */

        .navbar a i {
            flex: 0 0 auto;
            color: #2B579A;
            font-size: 0.9rem;
            transition: color 0.18s ease, transform 0.18s ease;
        }


        /* HOVER */

        .navbar a:hover {
            color: #2B579A;
            border-color: #9db7d7;
            background: #f2f7fd;
            box-shadow: 0 3px 8px rgba(43, 87, 154, 0.12);
            transform: translateY(-1px);
        }

            .navbar a:hover i {
                color: #1E4B8B;
            }


        /* ÍÀÆÀÒÈÅ */

        .navbar a:active {
            transform: translateY(0);
            box-shadow: 0 1px 3px rgba(43, 87, 154, 0.09);
        }


        /* =========================
   ÀÊÒÈÂÍÀß ÑÒÐÀÍÈÖÀ
========================= */

        .navbar a.active {
            border-color: #2B579A;
            background: linear-gradient( 180deg, #3264a8 0%, #2B579A 100% );
            color: #ffffff !important;
            box-shadow: 0 3px 9px rgba(43, 87, 154, 0.26);
            transform: none;
        }

            .navbar a.active i {
                color: #ffffff;
            }

            .navbar a.active:hover {
                border-color: #2B579A;
                background: linear-gradient( 180deg, #3264a8 0%, #2B579A 100% );
                color: #ffffff !important;
                box-shadow: 0 3px 9px rgba(43, 87, 154, 0.26);
                transform: none;
            }

                .navbar a.active:hover i {
                    color: #ffffff;
                }


/* =========================
   ÎÑÍÎÂÍÎÉ ÊÎÍÒÅÍÒ
========================= */

.main-content {
    margin-top: 70px;
}

.section-container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 52px 20px 42px;
    background: radial-gradient( circle at center, #d8e5ee 0%, #edf4f9 45%, white 100% );
    text-align: center;
}

.hero-inner {
    width: min(900px, 100%);
    margin: 0 auto;
}

.hero h1 {
    color: #2B579A;
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-description {
    margin: 16px auto 24px;
    max-width: 760px;
    color: #555;
    font-size: 1.15rem;
    line-height: 1.55;
}


/* =========================
   ÇÎÍÀ ÇÀÃÐÓÇÊÈ
========================= */

.upload-zone {
    max-width: 720px;
    margin: 0 auto;
    padding: 34px 30px;
    background: white;
    border: 2px dashed #9BB7D8;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(43, 87, 154, 0.08);
}

    .upload-zone:hover {
        border-color: #2B579A;
        background-color: #F7FBFF;
        box-shadow: 0 8px 20px rgba(43, 87, 154, 0.18);
        transform: translateY(-2px);
    }

    .upload-zone.drag-over {
        border-color: #2B579A;
        background-color: #EEF5FF;
        box-shadow: 0 8px 22px rgba(43, 87, 154, 0.22);
    }

.upload-icon {
    margin-bottom: 11px;
    color: #2B579A;
    font-size: 3.2rem;
}

.upload-zone h2 {
    margin-bottom: 6px;
    color: #333;
    font-size: 1.5rem;
}

.upload-zone p {
    margin-bottom: 18px;
    color: #777;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background-color: #2B579A;
    color: white;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 3px 7px rgba(43, 87, 154, 0.18);
}

    .upload-button:hover {
        background-color: #1E4B8B;
        box-shadow: 0 5px 12px rgba(43, 87, 154, 0.25);
        transform: translateY(-1px);
    }


/* =========================
   ÊÎÍÔÈÄÅÍÖÈÀËÜÍÎÑÒÜ
========================= */

.privacy-box {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 720px;
    margin: 16px auto 0;
    padding: 13px 18px;
    border: 1px solid #C7D9ED;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.82);
    text-align: left;
}

.privacy-icon {
    flex-shrink: 0;
    color: #2B579A;
    font-size: 1.5rem;
}

.privacy-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .privacy-text strong {
        color: #2B579A;
    }

    .privacy-text span {
        color: #666;
        font-size: 0.93rem;
        line-height: 1.4;
    }

.privacy-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 5px;
    color: #2B579A;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

    .privacy-more-link:hover {
        color: #1E4B8B;
        text-decoration: underline;
    }


/* =========================
   ÑÅÊÖÈÈ
========================= */

.document-section,
.results-section,
.tools-section,
.templates-section {
    padding: 38px 20px;
}

.document-section {
    background: #F5F5F5;
}

.results-section {
    background: white;
}

.tools-section {
    background: #F5F5F5;
}

.templates-section {
    background: white;
    text-align: center;
}

    .document-section h2,
    .results-section h2,
    .tools-section h2,
    .templates-section h2 {
        margin-bottom: 24px;
        color: #2B579A;
        text-align: center;
        font-size: 2rem;
    }


/* =========================
   ÂÛÁÐÀÍÍÛÉ ÄÎÊÓÌÅÍÒ
========================= */

.document-card {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.09);
}

.document-icon {
    color: #2B579A;
    font-size: 2.5rem;
}

.document-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    text-align: left;
}

    .document-info strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .document-info span {
        margin-top: 4px;
        color: #777;
        font-size: 0.9rem;
    }

.remove-file-button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: #F2F2F2;
    color: #666;
    cursor: pointer;
}

    .remove-file-button:hover {
        background-color: #E3E3E3;
        color: #222;
    }

.analyze-button {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 25px auto 0;
    padding: 13px 30px;
    border: none;
    border-radius: 5px;
    background-color: #2B579A;
    color: white;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 3px 7px rgba(43, 87, 154, 0.18);
}

    .analyze-button:hover {
        background-color: #1E4B8B;
        box-shadow: 0 5px 12px rgba(43, 87, 154, 0.25);
        transform: translateY(-1px);
    }


/* =========================
   ÐÅÇÓËÜÒÀÒÛ
========================= */

.results-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

.result-card {
    display: grid;
    grid-template-columns: 45px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid #E2E2E2;
    border-radius: 8px;
    background: #FAFAFA;
}

    .result-card:hover {
        border-color: #B9CBE1;
        background: #F7FBFF;
    }

    .result-card > i {
        color: #2B579A;
        font-size: 1.8rem;
    }

    .result-card > div:nth-child(2) {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .result-card span {
        color: #777;
        font-size: 0.9rem;
    }

.result-status {
    min-width: 35px;
    color: #2B579A;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: right;
}

.analysis-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 900px;
    margin: 22px auto 0;
    padding: 14px;
    border-radius: 6px;
    background: #EEF4FB;
    color: #48617D;
    font-size: 0.94rem;
}


/* =========================
   ÈÍÑÒÐÓÌÅÍÒÛ
========================= */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.tool-card {
    padding: 24px 22px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

    .tool-card:hover {
        transform: translateY(5px);
        border-color: #2B579A;
        box-shadow: 0 8px 18px rgba(43, 87, 154, 0.25);
        background-color: #F7FBFF;
    }

    .tool-card:active {
        transform: translateY(3px) scale(0.99);
    }

    .tool-card i {
        margin-bottom: 12px;
        color: #2B579A;
        font-size: 2.25rem;
    }

    .tool-card h3 {
        margin-bottom: 6px;
        color: #333;
        font-size: 1.05rem;
    }

    .tool-card p {
        color: #777;
        font-size: 0.9rem;
        line-height: 1.4;
    }


/* =========================
   ØÀÁËÎÍÛ
========================= */

.templates-section p {
    margin: -6px auto 20px;
    color: #666;
}

.templates-button {
    display: inline-block;
    padding: 11px 25px;
    border-radius: 5px;
    background-color: #2B579A;
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 7px rgba(43, 87, 154, 0.18);
}

    .templates-button:hover {
        background-color: #1E4B8B;
        box-shadow: 0 5px 12px rgba(43, 87, 154, 0.25);
        transform: translateY(-1px);
    }


/* =========================
   FOOTER
========================= */

.footer {
    padding: 28px 20px;
    background-color: #2B579A;
    color: white;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* =========================
   ÌÎÄÀËÜÍÎÅ ÎÊÍÎ
========================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.38s ease, visibility 0.38s ease;
}

    .modal.active {
        opacity: 1;
        visibility: visible;
    }

.modal-content {
    position: relative;
    width: 100%;
    max-width: 470px;
    padding: 32px 30px 28px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    transform: translateY(-22px) scale(0.97);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal.active .analysis-modal-content {
    transform: translate( var(--modal-x, 0px), var(--modal-y, 0px) );
}

.close-modal-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #777;
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.2s ease;
}

    .close-modal-button:hover {
        background-color: #F1F1F1;
        color: #333;
    }

.modal-icon {
    margin-bottom: 16px;
    color: #2B579A;
    font-size: 2.7rem;
}

.modal-content h3 {
    margin-bottom: 14px;
    color: #2B579A;
    font-size: 1.4rem;
}

.modal-content p {
    margin: 0 auto 24px;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-ok-button {
    min-width: 130px;
    padding: 11px 24px;
    border: none;
    border-radius: 5px;
    background-color: #2B579A;
    color: white;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 3px 7px rgba(43, 87, 154, 0.18);
    transition: all 0.25s ease;
}

    .modal-ok-button:hover {
        background-color: #1E4B8B;
        box-shadow: 0 5px 12px rgba(43, 87, 154, 0.25);
        transform: translateY(-1px);
    }


/* =========================
   ÑÒÐÀÍÈÖÀ ÊÎÍÔÈÄÅÍÖÈÀËÜÍÎÑÒÈ
========================= */

.privacy-page {
    min-height: calc(100vh - 70px);
    padding: 65px 20px 70px;
    background: radial-gradient( circle at top center, #d8e5ee 0%, #edf4f9 28%, #f5f5f5 65% );
}

.privacy-page-container {
    width: min(1000px, 100%);
    margin: 0 auto;
}


/* Çàãîëîâîê */

.privacy-page-header {
    max-width: 800px;
    margin: 0 auto 45px;
    text-align: center;
}

.privacy-page-icon {
    margin-bottom: 15px;
    color: #2B579A;
    font-size: 3.2rem;
}

.privacy-page-header h1 {
    margin-bottom: 15px;
    color: #2B579A;
    font-size: 2.5rem;
}

.privacy-page-header p {
    color: #555;
    font-size: 1.15rem;
    line-height: 1.6;
}


/* Êàðòî÷êè */

.privacy-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.privacy-feature-card {
    padding: 28px;
    border: 1px solid #DFE6EE;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
}

    .privacy-feature-card i {
        margin-bottom: 15px;
        color: #2B579A;
        font-size: 2rem;
    }

    .privacy-feature-card h2 {
        margin-bottom: 10px;
        color: #333;
        font-size: 1.2rem;
    }

    .privacy-feature-card p {
        color: #666;
        line-height: 1.6;
    }


/* Êàê ýòî ðàáîòàåò */

.privacy-explanation {
    margin-bottom: 30px;
    padding: 32px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
}

    .privacy-explanation > h2 {
        margin-bottom: 25px;
        color: #2B579A;
        text-align: center;
        font-size: 1.7rem;
    }

.privacy-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #EEEEEE;
}

    .privacy-step:last-child {
        border-bottom: none;
    }

.privacy-step-number {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #2B579A;
    color: white;
    font-weight: 700;
}

.privacy-step strong {
    color: #333;
    font-size: 1.05rem;
}

.privacy-step p {
    margin-top: 5px;
    color: #666;
    line-height: 1.55;
}


/* Ïðîâåðêà ÷åðåç F12 */

.privacy-test-box {
    display: flex;
    gap: 22px;
    margin-bottom: 25px;
    padding: 30px;
    border: 1px solid #AFC5DF;
    border-radius: 8px;
    background-color: #EEF4FB;
}

.privacy-test-icon {
    flex-shrink: 0;
    color: #2B579A;
    font-size: 2.4rem;
}

.privacy-test-content h2 {
    margin-bottom: 12px;
    color: #2B579A;
    font-size: 1.45rem;
}

.privacy-test-content p {
    margin-bottom: 10px;
    color: #4E5E70;
    line-height: 1.6;
}

    .privacy-test-content p:last-child {
        margin-bottom: 0;
    }


/* Ôèíàëüíûé àêöåíò */

.privacy-important {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    border-left: 5px solid #2B579A;
    border-radius: 7px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.07);
}

    .privacy-important > i {
        flex-shrink: 0;
        color: #2B579A;
        font-size: 2rem;
    }

    .privacy-important strong {
        color: #2B579A;
        font-size: 1.1rem;
    }

    .privacy-important p {
        margin-top: 5px;
        color: #666;
        line-height: 1.5;
    }


/* Êíîïêà íàçàä */

.privacy-back {
    margin-top: 35px;
    text-align: center;
}

.privacy-back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 24px;
    border-radius: 5px;
    background-color: #2B579A;
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 7px rgba(43, 87, 154, 0.18);
    transition: all 0.25s ease;
}

    .privacy-back-button:hover {
        background-color: #1E4B8B;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 5px 12px rgba(43, 87, 154, 0.25);
    }


/* =========================
   ÏÅÐÅÕÎÄ ÌÅÆÄÓ ÑÒÐÀÍÈÖÀÌÈ
========================= */

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2B579A;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

    .page-transition.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

.page-transition-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: white;
    text-align: center;
}

.page-transition-logo {
    font-size: 3rem;
}

.page-transition-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}


/* ÊÐÓÒßÙÈÉÑß ÊÐÓÃ */

.page-loader {
    width: 42px;
    height: 42px;
    margin-top: 4px;
    border: 4px solid rgba(255, 255, 255, 0.28);
    border-top-color: white;
    border-radius: 50%;
    animation: pageLoaderSpin 0.8s linear infinite;
}

@keyframes pageLoaderSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ========================================
   ÐÅÇÓËÜÒÀÒÛ ÀÍÀËÈÇÀ
======================================== */

.analysis-result-block {
    margin-top: 28px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
}

.analysis-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

    .analysis-result-header h3 {
        margin: 0 0 4px;
        font-size: 19px;
        font-weight: 700;
        color: #1e293b;
    }

    .analysis-result-header p {
        margin: 0;
        font-size: 14px;
        color: #64748b;
    }


/* Óñïåøíàÿ ïðîâåðêà */

.analysis-success {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

    .analysis-success > i {
        margin-top: 2px;
        font-size: 20px;
        color: #16a34a;
    }

    .analysis-success div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .analysis-success strong {
        color: #166534;
    }

    .analysis-success span {
        font-size: 14px;
        color: #4b5563;
    }


/* Ñâîäêà çàìå÷àíèé */

.analysis-issues-summary {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #92400e;
}

    .analysis-issues-summary i {
        color: #d97706;
    }


/* Ñïèñîê çàìå÷àíèé */

.analysis-issues-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.analysis-issue-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    text-align: left;
}

.analysis-issue-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
}

.analysis-issue-content {
    min-width: 0;
    flex: 1;
    text-align: left;
}

    .analysis-issue-content > strong {
        display: block;
        margin-bottom: 8px;
        color: #78350f;
        font-size: 15px;
        text-align: left;
    }

    .analysis-issue-content p {
        margin: 0;
        padding-left: 2px;
        line-height: 1.65;
        font-size: 14px;
        color: #475569;
        text-align: left;
    }

.document-fragment {
    color: #334155;
}


/* Ñòàòóñû âåðõíèõ êàðòî÷åê */

.result-status.status-success {
    color: #15803d;
    font-weight: 600;
}

.result-status.status-warning {
    color: #b45309;
    font-weight: 600;
}


/* ========================================
   ÌÎÄÀËÜÍÎÅ ÎÊÍÎ ÐÅÇÓËÜÒÀÒÎÂ ÀÍÀËÈÇÀ
======================================== */

.analysis-modal {
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.analysis-modal-content {
    --modal-x: 0px;
    --modal-y: 0px;
    width: min(980px, calc(100vw - 48px));
    min-width: 600px;
    max-width: calc(100vw - 48px);
    min-height: 350px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    resize: both;
    display: flex;
    flex-direction: column;
    padding: 28px 30px 24px;
    text-align: left;
    transform: translate( var(--modal-x), var(--modal-y) );
}

.analysis-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-right: 36px;
    text-align: left;
    cursor: move;
    user-select: none;
}

    .analysis-modal-header .modal-icon {
        flex: 0 0 auto;
    }

    .analysis-modal-header h3 {
        margin: 0 0 4px;
        font-size: 22px;
        color: #1e293b;
    }

    .analysis-modal-header p {
        margin: 0;
        font-size: 14px;
        color: #64748b;
    }

.analysis-modal-results {
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom: 22px;
    text-align: left;
}

    .analysis-modal-results .analysis-result-block {
        margin-top: 0;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: left;
    }

    .analysis-modal-results .analysis-result-header {
        margin-bottom: 18px;
        text-align: left;
    }

        .analysis-modal-results .analysis-result-header h3,
        .analysis-modal-results .analysis-result-header p {
            text-align: left;
        }

.analysis-modal-content .modal-ok-button {
    flex: 0 0 auto;
    align-self: flex-end;
    min-width: 140px;
    margin-top: 4px;
}

.comparison-before-after + .comparison-before-after {
    margin-top: 10px;
}


/* ========================================
   ÎÁÐÀÒÍÀß ÑÂßÇÜ
======================================== */

.feedback-modal-content {
    width: 100%;
    max-width: 620px;
    padding: 30px;
    text-align: left;
}

.feedback-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-right: 35px;
}

.feedback-modal-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #EEF4FB;
    color: #2B579A;
    font-size: 1.25rem;
}

.feedback-modal-header h3 {
    margin: 0 0 5px;
    color: #2B579A;
    font-size: 1.45rem;
}

.feedback-modal-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.45;
}

.feedback-field {
    margin-bottom: 20px;
}

    .feedback-field > label {
        display: block;
        margin-bottom: 8px;
        color: #334155;
        font-size: 0.95rem;
        font-weight: 600;
    }

.feedback-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-type-button {
    padding: 8px 14px;
    border: 1px solid #C7D5E5;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    font-size: 0.92rem;
}

    .feedback-type-button:hover {
        border-color: #2B579A;
        color: #2B579A;
        background: #F7FBFF;
    }

    .feedback-type-button.active {
        border-color: #2B579A;
        background: #2B579A;
        color: white;
    }

.feedback-input,
.feedback-textarea {
    width: 100%;
    border: 1px solid #CBD5E1;
    border-radius: 7px;
    background: white;
    color: #334155;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-input {
    height: 42px;
    padding: 0 12px;
}

.feedback-textarea {
    min-height: 135px;
    padding: 11px 12px;
    resize: vertical;
    line-height: 1.5;
}

    .feedback-input:focus,
    .feedback-textarea:focus {
        border-color: #2B579A;
        box-shadow: 0 0 0 3px rgba(43, 87, 154, 0.12);
    }

.feedback-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.82rem;
}

.feedback-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px solid #D5E2EF;
    border-radius: 7px;
    background: #F7FAFD;
    color: #52667D;
    font-size: 0.84rem;
    line-height: 1.45;
}

    .feedback-privacy i {
        flex-shrink: 0;
        margin-top: 2px;
        color: #2B579A;
    }

.feedback-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.feedback-cancel-button,
.feedback-submit-button {
    min-width: 110px;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.feedback-cancel-button {
    border: 1px solid #CBD5E1;
    background: white;
    color: #475569;
}

    .feedback-cancel-button:hover {
        background: #F1F5F9;
    }

.feedback-submit-button {
    border: none;
    background: #2B579A;
    color: white;
    box-shadow: 0 3px 7px rgba(43, 87, 154, 0.18);
}

    .feedback-submit-button:hover {
        background: #1E4B8B;
        transform: translateY(-1px);
    }

    .feedback-submit-button:disabled {
        opacity: 0.65;
        cursor: default;
        transform: none;
    }

.feedback-status {
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 6px;
    font-size: 0.9rem;
}

    .feedback-status.success {
        border: 1px solid #BBF7D0;
        background: #F0FDF4;
        color: #166534;
    }

    .feedback-status.error {
        border: 1px solid #FECACA;
        background: #FEF2F2;
        color: #991B1B;
    }

.feedback-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 650px) {

    .feedback-modal-content {
        padding: 24px 18px 20px;
    }

    .feedback-modal-header {
        gap: 12px;
    }

    .feedback-types {
        gap: 6px;
    }

    .feedback-type-button {
        padding: 8px 11px;
    }

    .feedback-actions {
        flex-direction: column-reverse;
    }

    .feedback-cancel-button,
    .feedback-submit-button {
        width: 100%;
    }
}

/* ========================================
   ÏÐÎÒÎÊÎË ÇÀÌÅ×ÀÍÈÉ
   ÃÅÎÌÅÒÐÈß ÊÀÊ Ó «ÐÅÍÒÃÅÍ DOCX»
   Çíà÷åíèÿ ïåðåíåñåíû èç pre-send-check.css
======================================== */

.review-protocol-page {
    min-height: calc(100vh - 160px);
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 28px 60px;
    background: #f5f7fa;
}

/* Çàãîëîâîê ñòðàíèöû */

.review-page-header {
    margin-bottom: 32px;
    text-align: center;
}

    .review-page-header h1 {
        margin: 0 0 10px;
        font-size: 32px;
        line-height: 1.2;
        font-weight: 700;
        color: #245a9f;
    }

    .review-page-header p {
        max-width: 820px;
        margin: 0 auto;
        font-size: 15px;
        line-height: 1.55;
        color: #626d79;
    }

/* Êàðòî÷êà äîêóìåíòà */

.review-document-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e0e5eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.review-document-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.review-document-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 9px;
    background: #eef4fb;
    color: #2d61a4;
    font-size: 21px;
}

.review-document-card-header > div:last-child {
    min-width: 0;
}

.review-document-card-header h2 {
    margin: 0 0 3px;
    font-size: 19px;
    line-height: 1.25;
    color: #242424;
}

.review-document-card-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #737d88;
}

/* Çîíà çàãðóçêè */

.review-upload-zone {
    min-height: 165px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px;
    border: 2px dashed #b7c6d9;
    border-radius: 10px;
    background: #fafcff;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

    .review-upload-zone:hover {
        border-color: #2d61a4;
        background: #f3f7fc;
    }

    .review-upload-zone.drag-over {
        border-color: #2d61a4;
        background: #eaf2fb;
        transform: scale(1.01);
    }

.review-upload-icon {
    margin-bottom: 12px;
    color: #2d61a4;
    font-size: 31px;
}

.review-upload-title {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    color: #2b2b2b;
    font-weight: 700;
}

.review-upload-text {
    margin-top: 0;
    font-size: 13px;
    color: #7c8792;
}

/* Âûáðàííûé ôàéë */

.review-file-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
    padding: 12px 14px;
    background: #f5f8fc;
    border: 1px solid #dce5ef;
    border-radius: 8px;
}

.review-file-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.review-file-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 7px;
    background: #eef4fb;
    color: #2d61a4;
    font-size: 18px;
}

.review-file-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.review-file-name {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    color: #303030;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-file-size {
    margin-top: 0;
    font-size: 12px;
    color: #747f8a;
}

.review-remove-button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6d7680;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .review-remove-button:hover {
        background: #fbecec;
        color: #c44242;
    }

/* Êíîïêà ôîðìèðîâàíèÿ */

.review-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.review-analyze-button {
    min-width: 270px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 25px;
    border: none;
    border-radius: 8px;
    background: #2d61a4;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(45, 97, 164, 0.22);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .review-analyze-button:hover:not(:disabled) {
        background: #244f88;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(45, 97, 164, 0.26);
    }

    .review-analyze-button:disabled {
        background: #aeb8c5;
        color: #eef0f2;
        cursor: not-allowed;
        box-shadow: none;
    }

/* Ñòàòóñ */

.review-stage-result {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 820px;
    margin: 28px auto 0;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #dfe6df;
    border-radius: 10px;
    box-shadow: 0 3px 11px rgba(0, 0, 0, 0.04);
}

.review-stage-result-icon {
    margin-top: 1px;
    color: #458552;
    font-size: 24px;
}

.review-stage-result-title {
    margin-bottom: 4px;
    font-size: 16px;
    color: #252b31;
    font-weight: 700;
}

.review-stage-result-text {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #5d6771;
}

@media (max-width: 1200px) {
    .review-protocol-page {
        max-width: 1040px;
    }
}

@media (max-width: 850px) {
    .review-protocol-page {
        padding: 32px 18px 48px;
    }

    .review-page-header h1 {
        font-size: 28px;
    }

    .review-document-card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .review-protocol-page {
        padding: 26px 14px 42px;
    }

    .review-document-card {
        padding: 20px;
    }

    .review-analyze-button {
        width: 100%;
        min-width: 0;
    }
}

/* Èòîãîâûé ïðîòîêîë */

.review-protocol-result {
    max-width: 1280px;
    margin: 38px auto 0;
    padding: 24px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.07);
}

.review-protocol-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

    .review-protocol-result-header h2 {
        margin: 0 0 5px;
        color: #1e293b;
        font-size: 24px;
    }

    .review-protocol-result-header p {
        margin: 0;
        color: #64748b;
        line-height: 1.45;
    }

.review-export-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: none;
    border-radius: 8px;
    background: #217346;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(33, 115, 70, 0.20);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.review-export-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.review-export-button:hover {
    background: #185c37;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(33, 115, 70, 0.26);
}

.review-export-button:active {
    transform: translateY(0);
}

/* Ñâîäêà */

.review-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.review-summary-card {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

    .review-summary-card span {
        display: block;
        margin-bottom: 4px;
        color: #64748b;
        font-size: 13px;
    }

    .review-summary-card strong {
        color: #1e293b;
        font-size: 24px;
        line-height: 1;
    }

.review-summary-card-total {
    border-color: #bfdbfe;
    background: #eff6ff;
}

    .review-summary-card-total strong {
        color: #2B579A;
    }

/* Òàáëèöà */

.review-protocol-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.review-protocol-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

    .review-protocol-table th,
    .review-protocol-table td {
        padding: 13px 14px;
        border-right: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: top;
        text-align: left;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

        .review-protocol-table th:last-child,
        .review-protocol-table td:last-child {
            border-right: 0;
        }

    .review-protocol-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .review-protocol-table thead th {
        position: sticky;
        top: 0;
        z-index: 1;
        background: #eef4fb;
        color: #334155;
        font-size: 13px;
        font-weight: 700;
    }

    .review-protocol-table tbody tr:hover {
        background: #fafcff;
    }

.review-col-number {
    width: 54px;
}

.review-col-type {
    width: 165px;
}

.review-col-author {
    width: 160px;
}

.review-protocol-number {
    color: #64748b;
    text-align: center !important;
    font-weight: 700;
}

.review-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.review-type-comment {
    background: #eff6ff;
    color: #1d4ed8;
}

.review-type-change {
    background: #fff7ed;
    color: #c2410c;
}

.review-location-label {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.review-context-text {
    color: #334155;
}

.review-protocol-content {
    color: #1e293b;
}

.review-author-name {
    color: #334155;
    font-weight: 600;
}

.review-author-date {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.review-protocol-replies {
    color: #475569;
}

.review-protocol-empty {
    padding: 28px !important;
    color: #64748b;
    text-align: center !important;
}

.hidden {
    display: none !important;
}

/* Àäàïòàöèÿ èìåííî ñòðàíèöû ïðîòîêîëà */

@media (max-width: 900px) {

    .review-protocol-page {
        width: min(100% - 28px, 1180px);
        padding-top: 34px;
    }

    .review-page-header {
        margin-bottom: 28px;
    }

        .review-page-header h1 {
            font-size: 2rem;
        }

    .review-document-card {
        padding: 22px;
    }

    .review-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .review-page-header h1 {
        font-size: 1.75rem;
    }

    .review-page-header p {
        font-size: 0.94rem;
    }

    .review-document-card {
        padding: 18px;
    }

    .review-document-card-header {
        align-items: flex-start;
    }

    .review-upload-zone {
        padding: 32px 14px;
    }

    .review-analyze-button {
        width: 100%;
        min-width: 0;
    }

    .review-protocol-result {
        padding: 18px 14px;
    }

    .review-protocol-result-header {
        flex-direction: column;
    }

    .review-export-button {
        width: 100%;
    }

    .review-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================
   ÀÄÀÏÒÀÖÈß
========================= */

@media (max-width: 900px) {

    .header {
        position: static;
        flex-direction: column;
        gap: 12px;
        padding: 14px 18px;
    }

    .main-content {
        margin-top: 0;
    }

    .logo {
        white-space: normal;
        text-align: center;
    }

    .navbar {
        width: 100%;
        margin-left: 0;
    }

        .navbar ul {
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
        }

        .navbar a {
            min-height: 38px;
            padding: 7px 11px;
            font-size: 0.92rem;
        }

    .hero {
        padding-top: 44px;
    }

        .hero h1 {
            font-size: 2rem;
        }

    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .privacy-page {
        padding-top: 45px;
    }

    .privacy-page-header h1 {
        font-size: 1.9rem;
    }

    .privacy-feature-grid {
        grid-template-columns: 1fr;
    }

    .privacy-explanation {
        padding: 24px 20px;
    }

    .privacy-test-box {
        flex-direction: column;
        padding: 24px 20px;
    }

    .privacy-important {
        align-items: flex-start;
        padding: 22px 20px;
    }

    .analysis-result-block {
        padding: 18px;
    }

    .analysis-issue-card {
        padding: 15px;
    }

    .analysis-modal {
        padding: 12px;
    }

    .analysis-modal-content {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 22px 18px 18px;
        max-height: 92vh;
        resize: none;
    }

    .analysis-modal-header {
        cursor: default;
    }

        .analysis-modal-header h3 {
            font-size: 19px;
        }

    .analysis-modal-content .modal-ok-button {
        width: 100%;
    }
}


@media (max-width: 650px) {

    .logo {
        font-size: 17px;
        text-align: center;
    }

    .navbar {
        width: 100%;
        margin-left: 0;
    }

        .navbar ul {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
        }

        .navbar li {
            min-width: 0;
        }

        .navbar a {
            width: 100%;
            min-height: 42px;
            padding: 7px 8px;
            font-size: 0.86rem;
            white-space: normal;
            line-height: 1.2;
            text-align: center;
        }

            .navbar a i {
                font-size: 0.86rem;
            }

    .hero {
        padding: 38px 15px 34px;
    }

        .hero h1 {
            font-size: 1.65rem;
        }

    .hero-description {
        font-size: 1rem;
    }

    .upload-zone {
        padding: 28px 18px;
    }

    .privacy-box {
        align-items: flex-start;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .document-card {
        gap: 12px;
    }

    .document-section,
    .results-section,
    .tools-section,
    .templates-section {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 430px) {

    .navbar ul {
        grid-template-columns: 1fr;
    }

    .navbar a {
        justify-content: flex-start;
        padding-left: 16px;
    }
}


/* =========================================================
   ÊÎÌÏÀÊÒÍÀß ÄÅÑÊÒÎÏÍÀß ÂÅÐÑÈß
   Öåëü:
   - èíñòðóìåíòû DOCX âèäíû íà ïåðâîì ýêðàíå
   - çàãîëîâîê "Ãîòîâûå øàáëîíû Word" òîæå âèäåí
========================================================= */

@media (min-width: 901px) {

    /* HERO */

    .hero {
        padding: 28px 20px 22px;
    }

        .hero h1 {
            font-size: 2.35rem;
            line-height: 1.15;
        }

    .hero-description {
        margin: 11px auto 16px;
        max-width: 760px;
        font-size: 1.08rem;
        line-height: 1.45;
    }


    /* ÇÎÍÀ ÇÀÃÐÓÇÊÈ */

    .upload-zone {
        max-width: 720px;
        padding: 21px 30px;
    }

    .upload-icon {
        margin-bottom: 6px;
        font-size: 2.65rem;
    }

    .upload-zone h2 {
        margin-bottom: 4px;
        font-size: 1.35rem;
    }

    .upload-zone p {
        margin-bottom: 13px;
        font-size: 0.95rem;
    }

    .upload-button {
        padding: 9px 22px;
    }


    /* ÊÎÍÔÈÄÅÍÖÈÀËÜÍÎÑÒÜ */

    .privacy-box {
        max-width: 720px;
        margin-top: 10px;
        padding: 8px 14px;
        gap: 11px;
    }

    .privacy-icon {
        font-size: 1.25rem;
    }

    .privacy-text {
        gap: 1px;
    }

        .privacy-text strong {
            font-size: 0.93rem;
        }

        .privacy-text span {
            font-size: 0.83rem;
            line-height: 1.28;
        }

    .privacy-more-link {
        margin-top: 1px;
        font-size: 0.82rem;
    }


    /* ÎÁÙÈÅ ÑÅÊÖÈÈ */

    .document-section,
    .results-section,
    .tools-section,
    .templates-section {
        padding-left: 20px;
        padding-right: 20px;
    }


    /* ÈÍÑÒÐÓÌÅÍÒÛ */

    .tools-section {
        padding-top: 20px;
        padding-bottom: 12px;
    }

        .tools-section h2 {
            margin-bottom: 14px;
            font-size: 1.85rem;
        }

    .tools-grid {
        gap: 18px;
    }

    .tool-card {
        padding: 17px 20px 18px;
    }

        .tool-card i {
            margin-bottom: 8px;
            font-size: 2rem;
        }

        .tool-card h3 {
            margin-bottom: 4px;
            font-size: 1rem;
            line-height: 1.25;
        }

        .tool-card p {
            font-size: 0.85rem;
            line-height: 1.3;
        }


    /* ØÀÁËÎÍÛ
       Ïîäòÿãèâàåì ââåðõ òàê, ÷òîáû çàãîëîâîê
       ñëåäóþùåãî ðàçäåëà áûë âèäåí ñðàçó.
    */

    .templates-section {
        padding-top: 18px;
        padding-bottom: 26px;
    }

        .templates-section h2 {
            margin-bottom: 12px;
            font-size: 1.85rem;
        }

        .templates-section p {
            margin: -2px auto 15px;
        }


    /* FOOTER */

    .footer {
        padding: 20px 20px;
    }

    .footer-content {
        gap: 7px;
    }
}
/* =========================
   ÑÒÐÀÍÈÖÀ ÎØÈÁÊÈ
========================= */

.error-page {
    min-height: calc(100vh - 140px);
    padding: 90px 20px 80px;
    background: radial-gradient( circle at top center, #d8e5ee 0%, #edf4f9 30%, #f5f5f5 68% );
}

.error-page-container {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 45px 35px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.error-page-icon {
    margin-bottom: 20px;
    color: #2B579A;
    font-size: 3.8rem;
}

.error-page h1 {
    margin-bottom: 16px;
    color: #2B579A;
    font-size: 2.2rem;
}

.error-page-description {
    max-width: 540px;
    margin: 0 auto 28px;
    color: #555;
    font-size: 1.08rem;
    line-height: 1.6;
}

.error-page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 24px;
    border-radius: 5px;
    background-color: #2B579A;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 3px 7px rgba(43, 87, 154, 0.18);
}

    .error-page-button:hover {
        background-color: #1E4B8B;
        box-shadow: 0 5px 12px rgba(43, 87, 154, 0.25);
        transform: translateY(-1px);
    }

.error-page-request {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid #e5eaf0;
    color: #777;
    font-size: 0.88rem;
}

    .error-page-request span {
        display: block;
        margin-bottom: 6px;
    }

    .error-page-request code {
        color: #555;
        word-break: break-all;
    }


@media (max-width: 600px) {

    .error-page {
        padding: 60px 15px;
    }

    .error-page-container {
        padding: 35px 22px;
    }

    .error-page h1 {
        font-size: 1.8rem;
    }

    .error-page-description {
        font-size: 1rem;
    }
}

/* ========================================
   ÏÎÄÑÊÀÇÊÀ ÏÎÑËÅ ÑÊÀ×ÈÂÀÍÈß ÏÐÎÒÎÊÎËÀ
======================================== */

.review-export-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.review-download-folder-note {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    box-sizing: border-box;
    border: 1px solid #d7e2ef;
    border-radius: 8px;
    background: #f7faff;
    color: #536b89;
    font-size: 0.95rem;
    line-height: 1.5;
}

    .review-download-folder-note i {
        flex: 0 0 auto;
        color: #2B579A;
        font-size: 1.05rem;
    }

    .review-download-folder-note strong {
        color: #344861;
    }

@media (max-width: 600px) {

    .review-download-folder-note {
        align-items: flex-start;
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}
