html, body {
    margin: 0;
    padding: 0;
    /*padding-top: 70px;*/
    height: 100%;
    font-family: "Fira Mono", monospace;
    color: var(--color-main-text-black);
    /*overflow: hidden;*/
}

.nav-link {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-article-third-5);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    z-index: 999;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.nav-buttons a {
    color: var(--color-article-main-1);
    text-decoration: none;
    font-size: clamp(17px, 1vw, 20px);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-buttons a:hover {
    color: var(--color-article-second-4);
}

.nav-buttons a.is-active {
    color: dimgray;
    pointer-events: none;
}

/* бургер по умолчанию скрыт (десктоп) */
.burger{
    display:none;
    margin-left: 1rem;
    font-size: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-article-main-1);
}

/* боковая панель */
.side-menu{
    position: fixed;
    top:0;
    left:0;               /* можно right:0; если хочешь справа */
    height:100vh;
    width: min(80vw, 320px);
    background: var(--color-article-third-5);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 1001;
    padding: 1rem;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.side-menu.open{
    transform: translateX(0);
}

.side-menu a.is-active {
    color: dimgray;
    pointer-events: none;
}

.close{
    font-size: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-article-main-1);
    display: block;
    margin-left: auto;
}

/* ссылки в боковом меню */
.side-links{
    margin-top: 1rem;
    display:flex;
    flex-direction: column;
    gap: 0.75rem;
}

.side-links a{
    text-decoration:none;
    color: var(--color-article-main-1);
    font-weight: 600;
    font-size: 18px;
    padding: 0.5rem 0.25rem;
}

/* затемнение */
.backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1000;
}

.center-text {
    margin: 100px auto 40px;
    width: 65%;
    /*max-width: 900px;*/
    text-align: justify;
    text-indent: 5%;
    color: var(--color-main-text-black);
    font-size: clamp(20px, 1vw, 22px);
    line-height: 1.8;
    padding-bottom: 100px;
}

/* Заголовок */
.center-text h1 {
    text-align: center;
    color: var(--color-article-main-1);
    font-size: clamp(40px, 2.5vw, 48px);
    margin-bottom: 1.5rem;
    font-weight: 900;
}

/* Подзаголовки */
.center-text h2 {
    color: var(--color-article-main-4);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Ссылки */
.center-text a {
    color: var(--color-article-second-4);
    text-decoration: none;
    border-bottom: 2px solid var(--color-article-second-5);
    transition: 0.3s;
}

.center-text a:hover {
    color: var(--color-article-second-5);
    border-bottom-color: var(--color-article-second-4);
}

/* Цитаты */
.center-text blockquote {
    border-left: 4px solid var(--color-article-third-1);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #333;
    background: rgba(52, 208, 186, 0.1);
    border-radius: 6px;
}

/* Разделительная линия */
.center-text hr {
    border: none;
    border-top: 2px solid var(--color-article-main-4);
    margin: 2rem 0;
}

/* Списки */
.center-text ul {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.center-text ul li {
    margin-bottom: 0.7rem;
    text-align: start;
}

/* Адресная строка */
.center-text address{
    font-weight: bold;
    margin-top: 60px;
}

.center-text video{
    width: 100%;
    height: auto;
}

.center-text .chapter {
    display: none;
}

.center-text .chapter.active {
    display: block;
    overflow: hidden;
}

.center-text figcaption {
    font-size: clamp(16px, 0.7vw, 19px);
}

.center-text figure {
    margin: 30px;
    text-align: center;
}

.nav-chapter {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-chapter .nav-left{
    display: flex;
    gap: 10px;
}

.nav-chapter .nav-right{
    margin-left: auto;
}

.center-text img {
    display: block;
    max-width: 100%;
    height: auto;
    width: 450px;
    margin: 30px auto;
}

.center-text .no-img {
    width: auto;
}

.img-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.img-row img {
    max-width: 48%;
    margin: 0;
    width: 400px;
}


/* Адаптивность */
/* Планшеты: ширина 601px – 1024px */
@media (min-width: 601px) and (max-width: 1024px) {
    .center-text {
        width: 90%;
    }
    .desktop-nav{ display:none; }
    .burger{ display:inline-block; }
    .nav-link{ padding: 0.75rem 0; }
}

/* Мобильные устройства: ширина до 600px */
@media (max-width: 600px) {
    .center-text {
        width: 90%;
    }
    .desktop-nav{ display:none; }
    .burger{ display:inline-block; }
    .nav-link{ padding: 0.75rem 0; }
}

/* Низкие экраны: высота до 910px */
@media (max-height: 910px) {
}

/* Комбинация: мобильные + низкие экраны */
@media (max-width: 600px) and (max-height: 910px) {
    .center-text {
        width: 90%;
    }
    .desktop-nav{ display:none; }
    .burger{ display:inline-block; }
    .nav-link{ padding: 0.75rem 0; }
}