/* Шапка */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 20px; */
    padding: 0;
    padding-right: 20px;
    z-index: 1000;
}

header h1 {
    padding: 0 20px;
    font-size: 20px;
    margin: 0;
    color: #444;
    line-height: 60px;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* header h1:hover {
    background: hsl(131, 49%, 75%);
} */

nav {
    display: flex;
    gap: 15px;
}

nav button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    height: 40px;         /* фиксированная высота */
    min-width: 120px;     /* минимальная ширина */
}

nav button:hover {
    background: #45a049;
}

nav button.opened-page {
    background: #3a863c;
}

nav button.opened-page:hover {
    background: #295f2b;
}


header button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    height: 40px;         /* фиксированная высота */
    min-width: 120px;     /* минимальная ширина */
}

header button:hover {
    background: #45a049;
}