* {
    box-sizing: border-box;
    font-size: 12px;
}

body {
    margin: 20px;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #222;
    padding-bottom: 120px; /* 👈 ключевое исправление */
}

h1 {
    margin-bottom: 20px;
}

h3 {
    margin-bottom: 8px;
    margin-top: -10px;
}

#form {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.eye {
    flex: 1;
    background: white;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    padding: 15px;
}

.eye h2 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.exam-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.exam-label {
    width: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.exam-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.exam-options label {
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.exam-options input {
    margin-right: 4px;
}

button {
    padding: 10px 18px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 15px;
    transition: background .15s;
}

button:hover {
    background: #f0f0f0;
}

button:active {
    background: #e5e5e5;
}

#out {
    margin-top: 25px;
    width: 100%;
    min-height: 350px;

    padding: 15px;

    border: 1px solid #d0d7de;
    border-radius: 10px;

    font-family: Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;

    resize: vertical;
}

.section-title {
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 6px;
}
/* .buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
} */

/* .buttons {
    position: sticky;
    top: 0;
    background: #f4f6f8;
    padding: 10px 0;
    z-index: 100;
} */
.buttons {
    position: sticky;
    bottom: 0;
    top: auto;

    background: #f4f6f8;

    padding: 12px 0;

    display: flex;
    gap: 10px;

    z-index: 100;

    border-top: 1px solid #ddd;
} 
/* .buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    background: white;
    border-top: 1px solid #ccc;

    padding: 12px 20px;

    display: flex;
    gap: 10px;

    z-index: 1000;
} */