ul, ol {
    padding-left: 0;
    margin: 0;
}

[id] {
    scroll-margin-top: 90px;  /* высота вашей шапки + запас */
}

.page {
    background-color: black;
    color: aliceblue;
    margin: 0;
    padding: 0;
    font-family: 'Calibri';
    padding-top: 80px;
}

.header {
    background-color: #071F22;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header__main-link {
    margin-left: 5%;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.header__image {
    background: url('images/logo.png');
    height: 70px;
    width: 70px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.header__title-text {
    color: aliceblue;
    font-size: 32pt;
    margin: 0px;
}

.header__nav {
    display: flex;
    gap: 150px;
    margin-right: 15%;
}

.header__nav-list {
    display: flex;
    gap: 150px;
    margin-right: 15%;
}

.dropdown {
    position: relative;
    list-style: none;
}

.dropdown__title {
    color: aliceblue;
    text-decoration: none;
    font-size: 20pt;
    cursor: pointer;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.dropdown__content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #071F22;
    width: 155px;
    border-radius: 10px;
    overflow: hidden;
}

.dropdown__content li {
    list-style: none;
}

.dropdown__link {
    color: aliceblue;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14pt;
    white-space: nowrap;
    transition: background-color 0.25s ease;
}

.dropdown__title:hover,
.dropdown__link:hover {
    background-color: #0a3a42;
}

.dropdown:hover .dropdown__content {
    display: block;
}

.dropdown__title {
    color: aliceblue;
    text-decoration: none;
}

.main {
    background: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.main__feed {
    width: 75%;
    min-width: 768px;
    max-width: 1920px;
    background-color: #191F23;
    height: auto;
    padding: 0 3% 2%;
    box-sizing: border-box;
}

.main_title {
    font-size: 48pt;
    display: flex;
    justify-content: center;
    margin: 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #323232;
    margin-bottom: 10px;
}

.main__info p {
    font-size: 24pt;
    margin: 15px 0px;
}

.card {
    display: flex;
    gap: 0px;
    margin: 40px;
}

.card__block {
    width: 50%;
    flex: none;
    box-sizing: border-box;
    padding: 0 100px;
    list-style: none;
}

.card__block--3 {
    width: 33.333%;
    padding: 0 40px;
}

.card__link {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-decoration: none;
    box-sizing: border-box;
}

.card__image {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.7);
}

.card__image--books {
    background-image: url('images/book.png');
}

.card__image--games {
    background-image: url('images/game.png');
}

.card__image--ar45 {
    aspect-ratio: 4/5;
}

.card__image--metro-2033 {
    background-image: url('images/metro_2033_book_cover.jpg');
}

.card__image--metro-2034 {
    background-image: url('images/metro_2034_book_cover.jpg');
}

.card__image--metro-2035 {
    background-image: url('images/metro_2035_book_cover.jpg');
}

.card__image--metro-2033_ {
    background-image: url('images/metro_2033_game_cover.jpg');
}

.card__image--metro-last-light {
    background-image: url('images/metro_last_light_game_cover.jpg');
}

.card__image--metro-exodus {
    background-image: url('images/metro_exodus_game_cover.jpg');
}

.card__link:hover .card__image--books,
.card__link:hover .card__image--games,
.card__link:hover .card__image--metro-2033,
.card__link:hover .card__image--metro-2034,
.card__link:hover .card__image--metro-2035,
.card__link:hover .card__image--metro-2033_,
.card__link:hover .card__image--metro-last-light,
.card__link:hover .card__image--metro-exodus {
    filter: grayscale(0%) brightness(1);
}

.card__link:hover .card__title {
    color: #F8BC09;
}

.card__title {
    font-size: 40pt;
    color: aliceblue;
    margin: 0px;
    transition: color 0.5s ease;
}

.card__title--3 {
    font-size: 32pt;
}

.article {
    overflow: auto;
    line-height: 1.5;
}

.article a {
    color: #F8BC09;
    text-decoration: none;
}

.article a:hover {
    color: #f7df97;
    text-decoration: underline;
}

.article__sidebar {
    margin-left: 2%;
    min-width: 200px;
    width: 30%;
    float: right;
    margin: 0 0 40px 40px;
    background-color: #1F1F1F;
    padding: 15px;
    border-radius: 10px;
}

.article__sidebar-image div {
    aspect-ratio: 4/5;
    background-image: url('images/metro_2033_book_cover.jpg');
    background-size: cover;
    border-radius: 3px;
}

.article__sidebar-image p {
    font-size: 14pt;
    text-align: center;
    margin: 12px 0 25px 0;
}

.article__sidebar-info ul {
    padding: 0;
    margin: 15px 0 0 0;

}

.article__sidebar-info li {
    list-style: none;
    font-size: 14pt;
    padding: 8px 0;
    border-top: 1px solid #333;
    color: #e0e0e0;
    display: flex;
    word-break: break-word;
}

.article__sidebar-info strong {
    display: block;
    width: 50%;
    flex-shrink: 0;
}

.article__content {
    font-size: 18pt;
}

.article__content h3 {
    font-size: 28pt;
    padding-bottom: 10px;
    border-bottom: 1px solid #323232;
    margin: 10px 0;
}

.article__content h4 {
    font-size: 20pt;
    padding: 0;
    margin: 40px 0 15px;
}

.article__section h4:first-of-type {
    margin: 15px 0;
}

.article__content p {
    margin: 15px 0;
}

.article__section li {
    list-style-type: disc;
    display: list-item;
    margin-left: 30px;
    padding-left: 10px;
}

.article__navigation h3 {
    margin: 0;
}

.article__navigation {
    position: relative;
    width: 40%;
    min-width: 400px;
    border: 3px solid #191F23;
    border-radius: 15px;
    padding: 20px;
    margin: 25px 0;
    overflow: hidden;
    z-index: 0;
    line-height: 2;
    counter-reset: main-counter 0;
}

.article__navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/nav_background.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.25) blur(2px) opacity(75%);
    z-index: -1;
}

.article__navigation>ol>li {
    list-style: none;
    counter-increment: main-counter;
}

.article__navigation>ol>li>a::before {
    content: counter(main-counter) ". ";
    font-weight: bold;
}

.article__nav-chapter {
    counter-reset: sub-counter;
    list-style: none;
    padding-left: 20px;
}

.article__nav-chapter li {
    counter-increment: sub-counter;
}

.article__nav-chapter a::before {
    content: counter(main-counter) "." counter(sub-counter) " ";
}

/* .article__navigation a {
    color: #e0e0e0;
} */

.footer {
    padding: 40px 5% 20px;
    background-color: #070707;
    color: aliceblue;
}

.footer__footnote {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #323232;
    margin-bottom: 20px;
}

.footer__footnote-text {
    font-size: 14pt;
    margin: 0;
    color: #BBBBBB;
}

.footer__footnote-age {
    font-size: 14pt;
    font-weight: bold;
    background-color: #8B0000;
    padding: 5px 12px;
    border-radius: 5px;
}

.footer__copyright {
    text-align: center;
}

.footer__copyright p {
    font-size: 10pt;
    margin: 0;
    color: #909090;
}