/* Общие стили */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: grid;
    grid-template-columns: 20% 1fr; /* Сетка: 20% на aside, остальное — main */
    grid-template-rows: auto 1fr auto; /* Верхний контент, основной контент, футер */
    min-height: 100vh;
    background: #fff;
    color: #222;
}

/* Навигация */
aside {
    grid-row: 1 / span 3;
    background: #e0e0e0;
    padding: 2.5%;
    border-right: 1px solid #ccc;
}

aside img {
    width: 210px;
    height: 260px;
    display: block;
    margin: 0 auto;
}

aside .logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

aside h3 {
    margin-top: 50px;
    text-align: center;
    font-size: 20px;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside ul li {
    font-size: 20px;
    display: block;
    margin-top: 20px;
    text-align: center;
    transition: transform .6s ease;
}

aside ul li:hover, aside ul a:hover {
    color: #eb5959;
    text-decoration: none;
    transform: scale(1.05);
}

/* Главный контент */
main {
    font-size: 25px;
    padding: 20px;
    grid-column: 2; /* Основной контент находится во второй колонке */
}

.project-description, .features, .recent-changes {
    margin: 20px auto;
    padding: 20px;
    max-width: 75%;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-description h2, .recent-changes h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.project-description p, .recent-changes ul li {
    line-height: 1.6;
    margin-bottom: 15px;
}

.recent-changes ul {
    list-style-type: none;
    padding-left: 0;
}

.recent-changes ul li a {
    text-decoration: none;
    color: #007bff;
}

.recent-changes ul li a:hover {
    text-decoration: underline;
}

/* Галерея портретов */
.portrait-gallery {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.portrait-gallery img {
    width: 120px;
    height: 150px;
    margin: 0 20px;
    border: 2px solid #ccc;
}

/* Футер */
footer {
    grid-column: 1 / span 2; /* Футер занимает всю ширину */
    padding: 10px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 2px solid #ccc;
}

.footer h5 {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer p {
    margin: 5px 0;
    color: #555;
}

aside .login {
    margin-top: 400px;
}


/* Заголовок страницы */
h1 {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-top: 20px;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 10px;
}

/* Стили для архива */
.archive {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 600px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.archive li {
    font-size: 20px;
    text-align: center;
    border-bottom: 1px solid #ccc;
    padding: 15px;
    transition: background-color 0.3s ease;
}

.archive li:last-child {
    border-bottom: none;
}

.archive li a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.archive li a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.archive li:hover {
    background-color: #e6f7ff;
}
