/* ===== Общие для всех страниц: бургер-меню в шапке, плавающая кнопка ВК и подвал =====
   Разметку рисует site-chrome.js. Подключается после стилей страницы. */

.header, .site-header {
position: relative;
z-index: 10
}

/* --- Бургер-меню --- */
.site-menu {
position: absolute;
top: 12px;
right: 50px;
z-index: 20;
text-align: left
}
.site-header .site-menu {
right: 0
}
.site-menu-btn {
background-color: transparent;
border: 1px solid var(--border-color, #3a4358);
color: var(--text-main, #fff);
width: 40px;
height: 40px;
border-radius: 50%;
font-size: 20px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 14px rgba(var(--accent-rgb, 212, 169, 74), 0.25);
-webkit-tap-highlight-color: transparent
}
.site-menu-panel {
position: absolute;
top: 48px;
right: 0;
min-width: 220px;
background-color: var(--card-bg, #242b3d);
border: 1px solid var(--border-color, #3a4358);
border-radius: 14px;
padding: 6px;
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(var(--accent-rgb, 212, 169, 74), 0.2)
}
.site-menu-panel[hidden] {
display: none
}
.site-menu-panel ul {
list-style: none;
margin: 0;
padding: 0
}
.site-menu-panel a,
.site-menu-sub-toggle {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
min-height: 44px;
padding: 10px 12px;
border: 0;
border-radius: 10px;
background: transparent;
color: var(--text-main, #fff);
font: inherit;
font-size: 15px;
font-weight: 600;
text-align: left;
text-decoration: none;
cursor: pointer
}
.site-menu-panel a:hover,
.site-menu-sub-toggle:hover {
background-color: rgba(var(--accent-rgb, 212, 169, 74), 0.15)
}
.site-menu-sub-toggle .site-menu-arrow {
transition: transform 0.2s
}
.site-menu-sub-toggle[aria-expanded="true"] .site-menu-arrow {
transform: rotate(180deg)
}
.site-menu-sub {
padding-left: 14px !important
}
.site-menu-sub[hidden] {
display: none
}
.site-menu-sub a {
font-weight: 500;
color: var(--accent, #d4a94a)
}

/* --- Подвал --- */
.site-footer {
width: 100%;
max-width: 640px;
margin: 32px auto 10px;
padding: 22px 0 10px;
border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
color: var(--text-muted-alt, #8e9eaf);
font-size: 13px;
text-align: left;
position: relative;
z-index: 1
}
.footer-cols {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
margin-bottom: 18px
}
@media (min-width: 640px) {
.footer-cols {
grid-template-columns: repeat(3, 1fr);
gap: 24px
}
}
.footer-col h3 {
font-size: 14px;
font-weight: 700;
color: var(--text-main, #fff);
margin: 0 0 8px
}
.footer-col p {
font-size: 13px;
line-height: 1.5;
color: var(--text-muted-alt, #8e9eaf);
margin: 0 0 8px
}
.footer-col a {
color: var(--accent, #d4a94a);
text-decoration: none;
font-weight: 600;
font-size: 14px
}
.footer-col ul {
list-style: none;
margin: 0;
padding: 0
}
.footer-col li {
margin-bottom: 6px
}
.footer-write {
display: inline-block;
background-color: var(--accent, #d4a94a);
color: var(--on-accent, #1a1f2e) !important;
padding: 10px 18px;
border-radius: 10px;
box-shadow: 0 0 12px rgba(var(--accent-rgb, 212, 169, 74), 0.35)
}
.footer-write-row {
display: flex;
flex-wrap: wrap;
gap: 8px
}
.footer-copy {
text-align: center;
margin: 0
}

/* --- Плавающая кнопка ВК --- */
.vk-float {
position: fixed;
right: 20px;
bottom: 24px;
z-index: 998;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
padding: 12px 20px;
border-radius: 23px;
background-color: var(--accent, #d4a94a);
color: var(--on-accent, #1a1f2e);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.3px;
text-decoration: none;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), 0 0 16px rgba(var(--accent-rgb, 212, 169, 74), 0.45);
-webkit-tap-highlight-color: transparent
}
.vk-float:active {
transform: scale(0.97)
}
/* В статьях в этом углу уже есть кнопка «↑ наверх» — ставим ВК над ней */
body:has(.scroll-top-btn) .vk-float {
bottom: 82px
}
/* Чтобы кнопка не закрывала низ подвала, когда страница прокручена до конца */
.site-footer {
padding-bottom: 72px
}
body:has(.scroll-top-btn) .site-footer {
padding-bottom: 130px
}
