﻿body {
    margin: 0;
    background: #f9f6ef;
}

.document {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page {
    position: relative;
    width: 794px;
    max-width: 90%;
    height: calc(0.9 * (100vh - 60px));
    background: #fff;
    padding: 60px 70px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,.15);
    box-sizing: border-box;
    overflow: hidden;
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.top-left {
    position: absolute;
    top: 60px;
    left: 70px;
    font-weight: bold;
}

.centered-block {
    text-align: center;
    margin-top: 100px;
}

    .centered-block p {
        margin: 4px 0;
    }

.signature-right {
    position: absolute;
    bottom: 80px; /* поднято выше центра */
    right: 70px;
}

.year-center {
    position: absolute;
    bottom: 20px; /* самый низ */
    left: 50%;
    transform: translateX(-50%);
}

.document-note {
    margin: 40px auto;
    max-width: 800px;
    padding: 20px 30px;
    background-color: #f4f4f4;
    border-left: 6px solid #777;
    font-family: "Segoe UI", sans-serif;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .document-note h3 {
        margin-top: 0;
    }

body {
    font-family: sans-serif;
    line-height: 1.6;
    margin: 20px;
}

h1, h2 {
    margin-bottom: 6px;
}

p {
    margin-top: 6px;
}

.pseudocode-block {
    width: 80%;
    margin: 24px auto 12px auto;
    border: 2px solid black;
    padding: 12px 48px; /* верх/низ 12px, слева/справа 48px */
    box-sizing: border-box; /* гарантирует, что padding не влияет на общую ширину */
}

.pseudocode-caption {
    text-align: center;
    font-weight: bold;
}

.pseudocode-block {
    width: 80%;
    margin: 24px auto 12px auto;
    border: 2px solid black;
    padding: 12px 48px; /* верх/низ 12px, слева/справа 48px */
    box-sizing: border-box;
}

.pseudocode-caption {
    text-align: center;
    font-weight: bold;
}

ol.alpha-parens {
    list-style: none;
    counter-reset: item;
    padding-left: 1.5em;
}

ol.alpha-parens li::before {
    counter-increment: item;
    content: counter(item, lower-alpha) ") ";
    position: absolute;
    margin-left: -1.5em;
}

<!-- Button styles -->

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #2c6eb5;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 3px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    transition: background 0.2s, color 0.2s;
}

.cta-button span {
    color: #ffcc00; /* lightning icon */
    transition: color 0.2s;
}

.cta-button:hover {
    background: #ffcc00; /* yellow background on hover */
    color: #2c6eb5; /* royal-blue text */
}

    .cta-button:hover span {
        color: #2c6eb5; /* lightning becomes blue */
    }


