* { box-sizing: border-box; }
a {text-decoration: none;}
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; max-width: 900px; margin: 0 auto; padding: 15px; background: #fff; color: #333; line-height: 1.5; }
header { position: relative; background: none; display: block; text-align: center;}
.top-nav {
    position: sticky;
    top: 10px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 120px;
    border-radius: 35px;
    margin: 0 15px 0 15px;
}
.link-icon {
    width: 42px;
    height: 42px;
    vertical-align: middle;
    margin-right: 4px;
    display: inline-block;
}

.icons_st {
    height: 20px;
    padding: 0 5px 0 5px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.site-header {
    position: absolute;
    bottom: 0;
    left: 0;
}
.site-logo {
  max-height: 80px;
    width: auto;
    display: block;
    padding: 2px 2px 2px 2px;
}
.header-logo {
    line-height: 0.9;
    font-size: 1.4em;
    text-align: right;
}
.site-desc {
    text-align: right;
    color: #716f6f;
}

.postlist-logo {
    max-height: 40px;
    margin-right: 5px;
}
.postlist-title {
    font-size: 1.5rem;
    line-height: 0.9;
    margin-block-start: 0;
    margin-block-end: 0;
    color: #551A8B;
}
.postlisttitle{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 25px 0 20px 0;
}
.post-author {
    color: #716f6f;
}

.main-content {
    border-top: 1px solid #e5e5e5;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #e5e5e5;
}


.post { background: #fff; padding: 0;}
.postbody { padding: 0 0 20px 0; }
.post img, .featured-image { max-width: 100%; height: auto; border-radius: 15px; }
.post-meta { font-size: 1.2em; color: #666; margin: 20px 0; }
.postlist-meta { font-size: 1.1em; color: #666; margin: 20px 0; }
.read-more{ background: #e9ecef; padding: 2px 6px; border-radius: 4px; margin-right: 5px; display: inline-block; margin-bottom: 4px; }
.like-btn { background: none; border: 1px solid #ccc; padding: 5px 10px; cursor: pointer; border-radius: 20px; font-size: 0.9em; margin: 7px 15px 0 0;}
.donut-button {
    margin: 20px 0 10px 0;
}
.comment { background: #f1f1f1; margin: 10px 0; padding: 10px; border-radius: 5px; }
.textcomment {
    min-height: 200px;
    border-radius: 20px;
}

.socialcontent {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
}

#reply-form input, #reply-form textarea { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 10px; }
#comment-form input, #comment-form textarea { width: 100%; padding: 8px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 10px; }
#loading-spinner { text-align: center; padding: 20px; font-style: italic; }
.lang-switch { float: right; }
nav a { margin-right: 10px; }

@media (max-width: 480px) {
    body { padding: 10px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }
    .post, header { padding: 5px; }
    .postlist-title {
    font-size: 1rem;}
    .post-author {
    font-size: 0.6rem;}
    .hashtag-link {
    font-size: 0.9rem;}
}

h1 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.0em;
    margin-block-end: 0.0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
.content {
    padding: 0 0 20px 0;
}
.post-title {
    padding-left: 20px;
    font-size: 2.3em;
}

.post-hashtag {
    color: #2563eb;
    text-decoration: none;
    background: #e9ecef;
    padding: 2px 5px;
    border-radius: 4px;
}
.post-hashtag:hover {
    text-decoration: underline;
    background: #d0d5da;
}
.hashtag-link {
    background: none;
    margin-right: 2px;
    text-decoration: none;
    color: #2563eb;
    display: inline-block;
    margin-bottom: 4px;
}
.hashtag-link:hover {
    text-decoration: underline;
}
.post-date {
    color: #6c757d;
    font-size: 0.85em;
    margin-right: 5px;
}

/* Стили для страницы авторизации */

.auth-links {
    text-align: right;
}

.auth-container {
    max-width: 450px;
    margin: 40px auto;
    backdrop-filter: blur(8px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.auth-container h1 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #ffffff, #88aaff);
    -webkit-background-clip: text;
    background-clip: text;
    color: #473f3f;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4e5561;
    font-size: 0.9rem;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    background: #0f1422;
    border: 1px solid #2a3650;
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.auth-form button {
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #1e40af);
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    margin-top: 10px;
}

.auth-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.auth-container p {
    text-align: center;
    margin-top: 24px;
    color: #8a9bd5;
}

.auth-container a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-container a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.error-message {
    background: rgba(220, 38, 38, 0.2);
    border-left: 4px solid #ef4444;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #ffb3b3;
    font-size: 0.9rem;
}

.captcha div {
    background: #0f1422;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #e2e8f0;
    border: 1px solid #2a3650;
}

/* Обёртка для поля пароля */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.password-wrapper input {
    flex: 1;
    padding-right: 40px; /* чтобы текст не наезжал на иконку */
}
.toggle-password {
    position: absolute;
    right: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 1.2rem;
    color: #8a9bd5;
    transition: color 0.2s;
}
.toggle-password:hover {
    color: #60a5fa;
}

/* Мобильная адаптация */
@media (max-width: 500px) {
    .auth-container {
        margin: 20px;
        padding: 24px 20px;
    }
    .auth-container h1 {
        font-size: 1.5rem;
    }
    .footer-up {
    padding-top: 20px;
    justify-content: center !important;
    flex-wrap: nowrap;
    flex-direction: column;
}

    }
    .footer-custom-block {
    padding-top: 20px !important;
    }


/* Стили для поиска */
/* ===== АВТОДОПОЛНЕНИЕ ПОИСКА ===== */
/* Контейнер формы */
.search {display: block;
}

@media (max-width: 550px) {
    .search {
        display: none;
    }
}

.search-drawer {
    display: block;
    margin-top: 10px;
}

.left-custom-block {
    display: block;
    color: #efefef;
    padding: 20px;
}

.search-pg {
    display: flex;
    align-content: center;
    justify-content: center;
    margin-bottom: 100px;
}

@media (min-width: 550px) {
    .search-drawer {
        display: none;
    }
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 480px;
    width: 100%;
}

/* Поле ввода */
.search-form input[type="text"] {
    width: 100%;
    padding: 0.5rem 3rem 0.5rem 1.2rem;   /* правый отступ освобождает место под иконку */
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    outline: none;
    font-size: 1rem;
    background: #fff;
    color: #1a202c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.25s, box-shadow 0.25s;
    font-family: inherit;
}

/* Placeholder */
.search-form input[type="text"]::placeholder {
    color: #a0aec0;
    font-style: italic;
    opacity: 1;
}

/* Кнопка-иконка */
.search-form button {
    position: absolute;
    right: 6px;               /* отступ от правого края формы */
    top: 50%;
    transform: translateY(-50%);
    background: transparent;  /* убираем фон */
    border: none;             /* убираем границу */
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    line-height: 1;
    color: #a0aec0;           /* нейтральный цвет иконки */
    transition: color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Убираем стандартный браузерный вид кнопки */
.search-form button:hover,
.search-form button:focus {
    background: none;
    outline: none;
}

.search-form button:hover {
    color: #5b6af0;           /* акцентный цвет при наведении */
}

/* Лёгкое уменьшение при нажатии */
.search-form button:active {
    transform: translateY(-50%) scale(0.93);
}

/* Подсветка всей формы при фокусе на поле */
.search-form:focus-within input[type="text"] {
    border-color: #5b6af0;
    box-shadow: 0 0 0 4px rgba(91, 106, 240, 0.15);
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
    .search-form {
        max-width: 100%;
    }
    .search-form input[type="text"] {
        padding: 0.65rem 2.8rem 0.65rem 1rem;
        font-size: 0.95rem;
    }
    .search-form button {
        right: 4px;
        padding: 0.4rem;
        font-size: 1.1rem;
    }
}

.footer-up {
    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-down {
    background: #fff;
    font-size: 0.7rem;
}


.footer-custom-block {
    padding-top: 35px;
    padding-top: 35px;
    font-size: 0.8rem;
    text-align: right;
}

.search-suggestions {
    position: absolute;
    left: 20px;
    top: 45px;
    background: white;
    border: none;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
}
.suggestion-item {
    padding: 5px 5px;
    cursor: pointer;
    border-bottom: none;
    text-align: left;
    font-style: italic;
    font-size: 0.9em;
}
.suggestion-item:hover {
    background: #f5f5f5;
}
.search-page h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}
.search-results-count {
    background: #e9ecef;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #495057;
}
.no-results {
    text-align: center;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    color: #6c757d;
}

.tag-cloud {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}
.tag-cloud h3 {
    margin-top: 0;
}
.tag-link {
    display: inline-block;
    margin: 5px;
    padding: 4px 10px;
    background: #c0c2c4;
    border-radius: 20px;
    text-decoration: none;
    color: #2563eb;
    font-size: 0.9rem;
}
.tag-link:hover {
    background: #d0d5da;
    text-decoration: underline;
}
.tag-count {
    font-size: 0.7rem;
    color: #6c757d;
}
.tags-page {
    text-align: center;
}
.tags-list {
    margin: 30px 0;
}
.tag-item {
    display: inline-block;
    margin: 10px;
    padding: 8px 16px;
    background: #e9ecef;
    border-radius: 30px;
    text-decoration: none;
    color: #2563eb;
    font-size: 1.1rem;
    transition: 0.2s;
}
.tag-item:hover {
    background: #2563eb;
    color: white;
}
.tag-item .tag-count {
    font-size: 0.8rem;
    margin-left: 5px;
}

.categories-tags {
    margin: 0 0 20px;
}

.comment-content a.mention {
    background: #e9ecef;
    padding: 0 2px;
    border-radius: 3px;
    font-weight: bold;
}

.login-to-comment {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

.comment_button {
    border-radius: 10px;
    padding: 12px;
    border: none;
    margin-top: 10px;
    background: #009a1d;
    color: #fff;;
}
.cancelled {
    background: #828282;
    margin-left: 5px;
}

/* ========== КНОПКА-ГАМБУРГЕР ========== */
.menu-button {
    display: flex;
    position: relative;
    z-index: 999;
    padding-left: 5px;
    justify-content: center;
}
.menu-icon {
    display: block;
    width: 34px;
    height: 30px;
    cursor: pointer;
    position: relative;
    
    z-index: 999;
}
.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    left: 0;
    transition: all 0.2s;
}
.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 10px; }
.menu-icon span:nth-child(3) { top: 20px; }

/* ========== ЛЕВАЯ ВЫДВИЖНАЯ ПАНЕЛЬ ВНУТРИ site-wrapper ========== */
.site-wrapper {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    background-color: #fff;
}

/* Оверлей */
.drawer-overlay {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1000;
    visibility: hidden;
}
.drawer-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Сама панель */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #26272D;
    color: #000;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    -webkit-box-shadow: 5px 0px 6px -3px rgba(34, 60, 80, 0.2);
-moz-box-shadow: 5px 0px 6px -3px rgba(34, 60, 80, 0.2);
box-shadow: 5px 0px 6px -3px rgba(34, 60, 80, 0.2);
}
.drawer.open {
    transform: translateX(0);
}

/* Запрет прокрутки body при открытой панели */
body.no-scroll {
    overflow: hidden;
}

/* Остальные стили для содержимого панели (drawer-section и т.д.) остаются без изменений */
.drawer-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 15px;
}
.drw-title {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: baseline;
    flex-direction: row;
    margin-bottom: 20px;
}
.drawer-title {
    font-size: 1.1rem;
    font-weight: 500;
}
.drawer-close {
    background: none;
    border: none;
    font-size: 3.2rem;
    cursor: pointer;
    color: #666666;
}
.drawer-section {
    padding: 0 20px 20px 20px;
}
.drawer-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #f7f7f7;
    line-height: 0.1;
}

.drawer-sp {
    font-size: 2rem;
    color: #666666;
    margin-right: 10px;
}
.drawer-nav ul, .drawer-categories, .drawer-top-posts {
    list-style: none;
    padding-left: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

.drawer-nav li, .drawer-categories li, .drawer-top-posts li {
    margin-bottom: 1px;
}
.drawer-nav a, .drawer-categories a, .drawer-top-posts a {
    color: #cacaca;
    text-decoration: none;
}
.drawer-nav a:hover, .drawer-categories a:hover, .drawer-top-posts a:hover {
    color: #cacaca;
    text-decoration: underline;
}
.likes-badge {
    font-size: 1rem;
    padding: 2px 5px;
    color: #c1c1c1;
}
.drawer-tags{
    padding: 15px;
}
.drawer-tags .tag-link {
    display: inline-block;
    padding: 2px;
    border-radius: 15px;
    margin: 0 3px 3px 0;
    font-size: 0.9rem;
    color: #474261;
    text-decoration: none;
}

.more-tags-link {
    margin-top: 15px;
}

.post-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 15px;
}
.post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Галерея – сетка 3 колонки на десктопе, 1 колонка на мобильных */
.post-gallery {
    margin: 30px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.gallery-grid a {
    display: block;
    overflow: hidden;
    transition: transform 0.2s;
}
.gallery-grid a:hover {
    transform: scale(1.02);
}
.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

/* Мобильная версия (ширина до 768px) */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid img {
        height: auto;
        max-height: 300px;
    }
}

/* Нумерация строк в блоках кода */
.hljs-ln {
    border-collapse: collapse;
    width: 100%;
}
.hljs-ln-numbers {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    border-right: 1px solid #ccc;
    vertical-align: top;
    padding-right: 10px;
}
.hljs-ln-code {
    padding-left: 10px;
}

/* Скрываем пустые якоря, оставляя их работоспособными для навигации */
a.editor-anchor:empty {
    display: inline-block;
    width: 0;
    height: 0;
    overflow: hidden;
    position: relative;
}

.editor-anchor {
    padding-top: 160px;
}

/* Для непустых якорей убираем стандартное оформление ссылок */
a.editor-anchor {
    text-decoration: none;
    color: inherit;
    cursor: default;
}

/* Опционально: если нужно показывать, что это якорь при наведении */
a.editor-anchor:hover {
    text-decoration: underline;
    cursor: pointer;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}
.breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs .separator {
    margin: 0 5px;
}

/* ========== ЭМОДЗИ-ПИКЕР ДЛЯ КОММЕНТАРИЕВ ========== */

/* Эмодзи-аккордеон */
.emoji-toolbar {
    margin: 0 0 10px;
}

.emoji-btn {
   background: #373737;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 1.1rem;
    display: inline-block;
}

.emoji-btn:hover {
    background: #3b4e6e;
}

.emoji-picker {
    background: #f2f2f2;
    border-radius: 10px;
    padding: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 200px;
    display: none;
    flex-wrap: wrap;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.emoji-picker.visible {
    display: flex;
}
.emoji-picker span {
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
}
.emoji-picker span:hover {
    background: #3b4e6e;
    border-radius: 6px;
}

.related-posts {
    margin: 40px 0 30px;
}
.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}
.related-posts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.related-post {
    flex: 1;
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.related-post:hover {
    transform: translateY(-3px);
}
.related-post img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.related-post h4 {
    margin: 8px 10px;
    font-size: 0.95rem;
}
.related-post h4 a {
    text-decoration: none;
    color: #333;
}
.related-post h4 a:hover {
    color: #2563eb;
}
.related-post .date {
    display: block;
    margin: 0 10px 10px;
    font-size: 0.7rem;
    color: #6c757d;
}
@media (max-width: 768px) {
    .related-post {
        min-width: 140px;
    }
}
@media (max-width: 480px) {
    .related-posts-list {
        gap: 10px;
    }
    .related-post {
        min-width: 120px;
    }
    .related-post img {
        height: 100px;
    }
}

.related-posts {
    margin: 0 0 30px;
}
.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}
.related-posts-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.related-post:hover {
    transform: translateY(-3px);
}
.related-post img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.related-post h4 {
    margin: 10px 12px 5px;
    font-size: 1rem;
}
.related-post h4 a {
    text-decoration: none;
    color: #333;
}
.related-post h4 a:hover {
    color: #2563eb;
}
.related-post .date {
    display: block;
    margin: 0 12px 12px;
    font-size: 0.7rem;
    color: #6c757d;
}
@media (max-width: 768px) {
    .related-posts-list {
        grid-template-columns: 1fr;
    }
}

.related-post .video-placeholder,
.related-post .no-image-placeholder {
    width: 100%;
    height: 160px;
    background: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}
.related-post .video-placeholder {
    background: #1e2a3e;
}

.comments-switch {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}
.comment-switch-btn {
    background: none;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 10px;
    background: #e9ecef;
    transition: 0.2s;
}
.comment-switch-btn.active {
    background: #2563eb;
    color: white;
}
.comments-block.active {
    display: block;
}
.comments-guest {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}
.comments-guest-buttons {
    display: inline;
    margin-top: 15px;
}
.comment-date {
    display: inline;
    padding-left: 10px;
}
.btn-login, .btn-vk {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
}
.btn-login {
    background: #26292f;
    color: white;
}

.icons_post {
    height: 28px;
    filter: invert(100%);
}

.btn-vk {
    background: #104f96;
    color: white;
    padding: 14px 23px;
    
}

.maintenance-container {
    background: rgba(30, 42, 62, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
.maintenance-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}
.maintenance-container p {
    font-size: 1.2rem;
    color: #cbd5e6;
    line-height: 1.5;
}
.maintenance-container .icon {
    font-size: 80px;
    margin-bottom: 20px;
}
.maintenance-container small {
    display: block;
    margin-top: 30px;
    color: #8a9bd5;
}
.maintenance-container a {
    color: #60a5fa;
    text-decoration: none;
}
.maintenance-container a:hover {
    text-decoration: underline;
}

.custom-block-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    text-align: center;
}

/* Страница контактов */
.contact-page {
    margin: 0 auto;
}
.contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.contact-avatar {
    margin-top: 50px;
    flex-shrink: 0;
    width: 180px;
    height: 180px;
}
.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.contact-info {
    flex: 1;
}
.contact-info h2 {
    margin: 0 0 5px;
    font-size: 1.8rem;
}
.contact-position {
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 15px;
}
.contact-bio {
    line-height: 1.5;
}
@media (max-width: 600px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== КНОПКА "ПОДЕЛИТЬСЯ" ========== */
.share-container {
    position: relative;
    display: inline-block;
    margin: 25px 0 15px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, #2563eb, #1e40af);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 16px;
}

.share-dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    width: 210px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.share-dropdown.active {
    display: block;
    animation: fadeInScale 0.2s ease;
}
.share-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4b5563;
}
.share-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
    padding: 0;
}
.share-close:hover {
    color: #ef4444;
}
.share-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.share-list li {
    margin: 0;
    padding: 0;
}
.share-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}
.share-link:last-child {
    border-bottom: none;
}
.share-link:hover {
    background: #f3f4f6;
}
.copy-link {
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.share-link.telegram:hover { background: #e8f4fd; color: #0088cc; }
.share-link.vk:hover { background: #eef2ff; color: #4680c2; }
.share-link.whatsapp:hover { background: #e6f9e6; color: #25d366; }
.share-link.twitter:hover { background: #e8f4fd; color: #1da1f2; }
.share-link.ok:hover { background: #fff1e6; color: #f58220; }

/* Анимация */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
