/*
 Theme Name:   Reboot Child
 Theme URI:    https://mos77.ru
 Description:  Редизайн в стиле vc.ru
 Author:       mos77
 Template:     reboot
 Version:      5.0.0
 Text Domain:  reboot-child
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================
   RESET & BASE
   ========================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { font-size: 15px; scroll-behavior: smooth; }

body,
#page,
#content.site-content {
    background: #f0f2f5 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 15px !important;
    color: #1c1c1c !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

/* ==========================================================
   HEADER — vc.ru style
   ========================================================== */

#masthead.site-header,
.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e5e9 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    height: 56px !important;
}

.site-header-inner,
.site-header-inner.fixed {
    display: flex !important;
    align-items: center !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    height: 56px !important;
    gap: 16px !important;
}

.site-branding { flex-shrink: 0 !important; }
.site-logotype { flex-shrink: 0 !important; }
.site-logotype img {
    height: 32px !important;
    width: auto !important;
    max-width: 150px !important;
    display: block !important;
}

.header-search { margin-left: auto !important; }
.search-icon { cursor: pointer; }

.humburger,
.mobile-menu-placeholder,
#site-navigation.main-navigation,
.header-separator { display: none !important; }

/* ==========================================================
   ОСНОВНОЙ LAYOUT — три колонки
   ========================================================== */

body #page #content .site-content-inner,
body.sidebar-right #page #content .site-content-inner,
body.sidebar-left  #page #content .site-content-inner,
.site-content-inner {
    display: grid !important;
    grid-template-columns: 220px 1fr 300px !important;
    grid-template-areas: "left-nav main-content right-sidebar" !important;
    gap: 20px !important;
    align-items: start !important;
    max-width: 1280px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    flex-wrap: unset !important;
}

/* ==========================================================
   ЛЕВАЯ КОЛОНКА
   ========================================================== */

#left-nav-sidebar {
    grid-area: left-nav !important;
    position: sticky !important;
    top: 72px !important;
    align-self: start !important;
    background: transparent !important;
    display: block !important;
    width: auto !important;
    float: none !important;
}

.vc-nav-section,
.left-nav-section {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.vc-nav-section-title,
.left-nav-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #9e9fa3 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 14px 16px 4px !important;
    display: block !important;
    font-family: 'Inter', sans-serif !important;
}

.vc-nav-list,
.left-nav-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 0 8px !important;
}

.vc-nav-list li,
.left-nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.vc-nav-list li a,
.vc-nav-list li span.removed-link,
.left-nav-menu li a,
.left-nav-menu li span {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 16px !important;
    color: #1c1c1c !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: background 0.12s ease !important;
    border-left: 3px solid transparent !important;
    cursor: pointer !important;
}

.vc-nav-list li a:hover,
.left-nav-menu li a:hover {
    background: #f5f6f8 !important;
    color: #1c1c1c !important;
}

.vc-nav-list li.current-menu-item > a,
.left-nav-menu li.current-menu-item > a,
.left-nav-menu li.current_page_item > a {
    background: #f0f4ff !important;
    color: #2d81e0 !important;
    border-left-color: #2d81e0 !important;
    font-weight: 500 !important;
}

.vc-nav-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
}

.vc-nav-count {
    margin-left: auto;
    font-size: 12px;
    color: #9e9fa3;
    font-weight: 400;
    background: #f0f2f5;
    padding: 1px 6px;
    border-radius: 10px;
}

.vc-nav-dot {
    width: 7px;
    height: 7px;
    background: #2d81e0;
    border-radius: 50%;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==========================================================
   ЦЕНТРАЛЬНАЯ КОЛОНКА
   ========================================================== */

body #page #content .site-content-inner > #primary,
#primary.content-area {
    grid-area: main-content !important;
    flex: none !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    flex-basis: auto !important;
    max-width: none !important;
    width: auto !important;
    min-width: 0 !important;
    order: 0 !important;
    float: none !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* ==========================================================
   ДАТА-БАР
   ========================================================== */

.vc-date-bar {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.vc-date-bar__date {
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1c;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
}

.vc-date-bar__date::after {
    content: "\25BE";
    font-size: 11px;
    color: #9e9fa3;
    font-weight: 400;
}

.vc-date-bar__rates {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #9e9fa3;
    flex-wrap: wrap;
}

.vc-date-bar__rate {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.vc-date-bar__rate-name { color: #9e9fa3; }
.vc-date-bar__rate-value { color: #1c1c1c; font-weight: 600; }
.vc-date-bar__rate--up .vc-date-bar__rate-value { color: #1b9930; }
.vc-date-bar__rate--down .vc-date-bar__rate-value { color: #e53e3e; }

/* ==========================================================
   ДАЙДЖЕСТ
   ========================================================== */

.vc-digest-block {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.vc-digest-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f2f5;
    transition: background .12s ease;
}

.vc-digest-item:hover { background: #fafbfc; }
.vc-digest-item:last-of-type { border-bottom: none; }

.vc-digest-link {
    font-size: 14px;
    font-weight: 400;
    color: #1c1c1c;
    line-height: 1.45;
    text-decoration: none;
    flex: 1;
    min-width: 0;
    transition: color 0.15s;
}

.vc-digest-link:hover { color: #2d81e0; }

.vc-digest-comments {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9e9fa3;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.vc-digest-more {
    padding: 10px 20px;
    border-top: 1px solid #f0f2f5;
}

.vc-digest-more a {
    font-size: 13px;
    color: #2d81e0;
    text-decoration: none;
    font-weight: 500;
}

.vc-digest-more a:hover { text-decoration: underline; }

/* ==========================================================
   КАРТОЧКИ ПОСТОВ
   ========================================================== */

.post-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.post-card,
#primary .post-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.05) !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
    transform: none !important;
    transition: box-shadow 0.2s ease !important;
    padding: 0 !important;
}

.post-card:hover,
#primary .post-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
}

#primary .post-card--standard::after { display: none !important; }

.post-card__thumbnail {
    border-radius: 0 !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
}

.post-card__thumbnail a { display: block !important; overflow: hidden !important; }

.post-card__thumbnail img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform 0.3s ease !important;
}

.post-card:hover .post-card__thumbnail img {
    transform: scale(1.02) !important;
}

.post-card__thumbnail .post-card__category,
.post-card__category {
    position: absolute !important;
    left: 16px !important;
    bottom: 16px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    background: #f23104 !important;
    color: #fff !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    line-height: 1.4 !important;
}

.post-card__title { padding: 0 !important; }

.post-card__title a,
.post-card__title span a {
    display: block !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    color: #1c1c1c !important;
    line-height: 1.35 !important;
    padding: 16px 20px 8px !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.post-card__title a:hover,
.post-card__title span a:hover { color: #2d81e0 !important; }

.post-card__description {
    font-size: 14px !important;
    color: #5c5c5c !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.6 !important;
    padding: 0 20px 14px !important;
    margin: 0 !important;
}

.post-card__meta {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 20px 16px !important;
    font-size: 12px !important;
    color: #9e9fa3 !important;
    font-family: 'Inter', sans-serif !important;
    border-top: 1px solid #f0f2f5 !important;
}

.post-card__date {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #9e9fa3 !important;
    font-size: 12px !important;
}

.post-card__date time { color: #9e9fa3 !important; font-size: 12px !important; }

.post-card__comments {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #9e9fa3 !important;
    font-size: 12px !important;
}

.post-card__views {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #9e9fa3 !important;
    font-size: 12px !important;
}

.post-card__author { display: none !important; }

/* ==========================================================
   ПРАВАЯ КОЛОНКА
   ========================================================== */

#right-comments-sidebar {
    grid-area: right-sidebar !important;
    position: sticky !important;
    top: 72px !important;
    align-self: start !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.vc-sidebar-block {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.vc-sidebar-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1c1c1c !important;
    padding: 16px 16px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f2f5 !important;
    font-family: 'Inter', sans-serif !important;
}

.vc-comments-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vc-comment-item {
    padding: 12px 16px !important;
    border-bottom: 1px solid #f0f2f5 !important;
    display: flex !important;
    gap: 10px !important;
    align-items: flex-start !important;
    transition: background 0.12s ease !important;
    cursor: pointer !important;
}

.vc-comment-item:last-child { border-bottom: none !important; }
.vc-comment-item:hover { background: #fafbfc !important; }

.vc-comment-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    overflow: hidden !important;
}

.vc-comment-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.vc-comment-body { flex: 1 !important; min-width: 0 !important; }

.vc-comment-author {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1c1c1c !important;
    font-family: 'Inter', sans-serif !important;
    display: inline !important;
}

.vc-comment-where {
    font-size: 12px !important;
    color: #9e9fa3 !important;
    font-family: 'Inter', sans-serif !important;
    display: inline !important;
}

.vc-comment-text {
    display: block !important;
    font-size: 12px !important;
    color: #5c5c5c !important;
    line-height: 1.5 !important;
    font-family: 'Inter', sans-serif !important;
    margin-top: 3px !important;
    word-break: break-word !important;
}

.vc-comment-reactions {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-top: 5px !important;
    font-size: 11px !important;
    color: #9e9fa3 !important;
}

#right-comments-sidebar .widget {
    background: #ffffff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.05) !important;
    padding: 0 !important;
    margin: 0 !important;
}

#right-comments-sidebar .widget-title,
#right-comments-sidebar .right-sidebar-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1c1c1c !important;
    padding: 14px 16px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f2f5 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-family: 'Inter', sans-serif !important;
    background: transparent !important;
}

#right-comments-sidebar #recentcomments,
#right-comments-sidebar .widget_recent_comments ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#right-comments-sidebar #recentcomments li,
#right-comments-sidebar .recentcomments,
#right-comments-sidebar .widget_recent_comments li {
    padding: 10px 16px !important;
    border-bottom: 1px solid #f0f2f5 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #5c5c5c !important;
    font-family: 'Inter', sans-serif !important;
    transition: background 0.12s ease !important;
}

#right-comments-sidebar #recentcomments li:last-child,
#right-comments-sidebar .widget_recent_comments li:last-child {
    border-bottom: none !important;
}

#right-comments-sidebar #recentcomments li:hover { background: #fafbfc !important; }

#right-comments-sidebar .comment-author-link {
    font-weight: 600 !important;
    color: #1c1c1c !important;
    font-size: 12px !important;
    font-family: 'Inter', sans-serif !important;
}

#right-comments-sidebar .widget_recent_comments a,
#right-comments-sidebar #recentcomments a {
    color: #1c1c1c !important;
    text-decoration: none !important;
    font-size: 12px !important;
}

#right-comments-sidebar .widget_recent_comments a:hover,
#right-comments-sidebar #recentcomments a:hover { color: #2d81e0 !important; }

/* ==========================================================
   СКРЫВАЕМ СТАНДАРТНЫЙ САЙДБАР
   ========================================================== */

#secondary.widget-area { display: none !important; }

/* ==========================================================
   ПАГИНАЦИЯ
   ========================================================== */

.navigation.pagination {
    background: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
    margin-top: 8px !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.05) !important;
}

.pagination .nav-links { display: flex; gap: 4px; align-items: center; }

.pagination .nav-links .page-numbers {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: #9e9fa3 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    transition: all 0.12s !important;
}

.pagination .nav-links .page-numbers:hover {
    background: #f0f2f5 !important;
    color: #1c1c1c !important;
}

.pagination .nav-links .page-numbers.current {
    background: #2d81e0 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

/* ==========================================================
   ПОДВАЛ
   ========================================================== */

.site-footer-container,
.site-footer {
    background: #ffffff !important;
    border-top: 1px solid #e2e5e9 !important;
    margin-top: 24px !important;
    box-shadow: none !important;
}

.site-footer-inner.fixed {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    font-size: 13px !important;
    color: #9e9fa3 !important;
    font-family: 'Inter', sans-serif !important;
}

.footer-bottom, .footer-info {
    font-size: 13px !important;
    color: #9e9fa3 !important;
    font-family: 'Inter', sans-serif !important;
}

/* ==========================================================
   КНОПКА ВВЕРХ
   ========================================================== */

.scrolltop.js-scrolltop {
    background: #2d81e0 !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    bottom: 24px !important;
    right: 24px !important;
    box-shadow: 0 4px 16px rgba(45,129,224,.4) !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.2s !important;
}

.scrolltop.js-scrolltop:hover {
    background: #1a6cc9 !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================
   ОДИНОЧНЫЙ ПОСТ
   ========================================================== */

.single #primary article {
    background: #ffffff !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.05) !important;
}

.entry-header { padding: 24px 24px 0 !important; }

.entry-header .entry-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #1c1c1c !important;
    line-height: 1.35 !important;
    font-family: 'Inter', sans-serif !important;
}

.entry-content {
    padding: 16px 24px 24px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #1c1c1c !important;
    font-family: 'Inter', sans-serif !important;
}

.entry-content p { margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3 { margin: 1.5em 0 0.6em; }
.entry-content img { border-radius: 8px; margin: 1em 0; }

.entry-meta {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 12px 24px !important;
    font-size: 12px !important;
    color: #9e9fa3 !important;
    border-bottom: 1px solid #f0f2f5 !important;
    margin-top: 8px !important;
}

/* ==========================================================
   СКРОЛЛ
   ========================================================== */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f2f5; }
::-webkit-scrollbar-thumb { background: #c8cdd5; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9e9fa3; }

/* ==========================================================
   АНИМАЦИИ
   ========================================================== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.post-card { animation: fadeUp 0.3s ease both; }
.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }

/* Адаптивность — см. блок «АДАПТИВНАЯ ВЕРСИЯ» в конце файла */


/* home-header */
.home-content { margin-bottom: 12px; }
.home-header {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1c1c1c !important;
    font-family: 'Inter', sans-serif !important;
    background: #fff;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.05) !important;
    margin: 0 !important;
}

/* Поиск в правом сайдбаре */
#right-comments-sidebar .search-form {
    display: flex !important;
    padding: 12px 16px !important;
    gap: 8px !important;
}

#right-comments-sidebar .search-field {
    flex: 1 !important;
    border: 1px solid #e2e5e9 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    transition: border-color 0.15s !important;
}

#right-comments-sidebar .search-field:focus {
    border-color: #2d81e0 !important;
}

#right-comments-sidebar .search-submit {
    background: #2d81e0 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 14px !important;
    cursor: pointer !important;
    color: #fff !important;
    font-size: 13px !important;
    transition: background 0.15s !important;
}

#right-comments-sidebar .search-submit:hover {
    background: #1a6cc9 !important;
}


/* Категория в посте */
.post-card__category a { color: #fff !important; }

/* Поиск в правом сайдбаре — фикс */
#right-comments-sidebar .widget_search { overflow: hidden !important; }
#right-comments-sidebar .search-form {
    display: flex !important;
    padding: 12px 16px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}
#right-comments-sidebar .search-field {
    flex: 1 !important;
    min-width: 0 !important;
    border: 1px solid #e2e5e9 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    box-sizing: border-box !important;
}
#right-comments-sidebar .search-field:focus { border-color: #2d81e0 !important; }
#right-comments-sidebar .search-submit {
    background: #2d81e0 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    color: #fff !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: 36px !important;
}
#right-comments-sidebar .search-submit:hover { background: #1a6cc9 !important; }
#right-comments-sidebar .search-submit::before { color: #fff !important; }


/* ============================================================
   ПАТЧ — фиксы header + right sidebar
   ============================================================ */

/* --- ADMIN BAR FIX --- */
.admin-bar #masthead.site-header,
.admin-bar .site-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    .admin-bar #masthead.site-header,
    .admin-bar .site-header { top: 46px !important; }
}
.admin-bar #left-nav-sidebar   { top: 108px !important; }
.admin-bar #right-comments-sidebar { top: 108px !important; }

/* --- HEADER FLEX FIX --- */
header#masthead,
header#masthead .site-header-inner,
header .site-header-inner,
.site-header-inner.fixed,
.site-header-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
}

.site-branding {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
}

.site-logotype {
    line-height: 1 !important;
}

.site-logotype img {
    height: 34px !important;
    width: auto !important;
    max-width: 160px !important;
    display: block !important;
    object-fit: contain !important;
}

.header-search {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    transition: background 0.15s !important;
    cursor: pointer !important;
}

.header-search:hover { background: #f0f2f5 !important; }

.search-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
}

/* Скрываем hamburger */
.humburger { display: none !important; }


/* --- TOP COMMENTATORS widget --- */
.widget_wpshop_widget_top_commentators > *:not(h3) {
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: #9e9fa3 !important;
    display: block !important;
}

/* --- SEARCH widget --- */
#right-comments-sidebar .widget_search .search-form {
    padding: 12px 16px !important;
    display: flex !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    align-items: center !important;
}

#right-comments-sidebar .widget_search .search-field {
    flex: 1 !important;
    min-width: 0 !important;
    border: 1.5px solid #e2e5e9 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    color: #1c1c1c !important;
    background: #f8f9fa !important;
    transition: border-color 0.15s !important;
    box-sizing: border-box !important;
    height: 38px !important;
}

#right-comments-sidebar .widget_search .search-field:focus {
    border-color: #2d81e0 !important;
    background: #fff !important;
}

#right-comments-sidebar .widget_search .search-submit {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    background: #2d81e0 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#right-comments-sidebar .widget_search .search-submit:hover { background: #1a6cc9 !important; }
#right-comments-sidebar .widget_search .search-submit::before { color: #fff !important; font-size: 15px !important; }

/* --- SOCIAL widget --- */
#right-comments-sidebar .widget_wpshop_widget_social_links .social-links { padding: 12px 16px !important; }

#right-comments-sidebar .social-buttons {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
}

#right-comments-sidebar .social-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: opacity 0.15s, transform 0.15s !important;
}

#right-comments-sidebar .social-button:hover {
    opacity: 0.85 !important;
    transform: scale(1.05) !important;
}


/* --- Виджеты без отступов внутри --- */
#right-comments-sidebar .vc-sidebar-block { overflow: hidden !important; }

/* Если виджет содержит обычный текст (не список) */
.vc-sidebar-block > p,
.vc-sidebar-block > div:not([class]) {
    padding: 12px 16px !important;
    font-size: 13px !important;
    color: #5c5c5c !important;
}

/* ==========================================================
   v6 — ПРАВАЯ КОЛОНКА (фикс)
   ========================================================== */

#content.site-content,
#content.site-content.fixed {
    margin-top: 0 !important;
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#page { overflow-x: clip; }
#primary .related-posts,
#primary .related-posts.fixed { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }

#right-comments-sidebar {
    gap: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    scrollbar-width: none;
}
#right-comments-sidebar::-webkit-scrollbar { display: none; }

#right-comments-sidebar .widget,
#right-comments-sidebar .vc-sidebar-block {
    width: 100% !important;
    flex: 0 0 auto !important;
}

#right-comments-sidebar .widget-title,
#right-comments-sidebar .vc-sidebar-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 16px 12px !important;
}
#right-comments-sidebar .widget-title::before,
#right-comments-sidebar .widget-title::after { display: none !important; }

/* --- Свежие комментарии (vc.ru) --- */
#right-comments-sidebar ul.vc-rc,
ul.vc-rc {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
}

#right-comments-sidebar ul.vc-rc > li.vc-rc__item,
ul.vc-rc > li.vc-rc__item {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
ul.vc-rc > li.vc-rc__item::before { display: none !important; content: none !important; }

#right-comments-sidebar ul.vc-rc a.vc-rc__link,
ul.vc-rc a.vc-rc__link {
    display: block !important;
    padding: 12px 16px !important;
    color: #1c1c1c !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: background .12s ease !important;
}
#right-comments-sidebar ul.vc-rc a.vc-rc__link:hover,
ul.vc-rc a.vc-rc__link:hover { background: #f7f8fa !important; color: #1c1c1c !important; }

ul.vc-rc > li.vc-rc__item + li.vc-rc__item { border-top: 1px solid #f0f2f5 !important; }

.vc-rc__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    min-width: 0;
}
.vc-rc__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    object-fit: cover;
}
img.vc-rc__avatar {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.vc-rc__author {
    font-size: 13px;
    font-weight: 600;
    color: #1c1c1c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.vc-rc__time {
    font-size: 12px;
    color: #9e9fa3;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}
.vc-rc__text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    color: #1c1c1c;
    word-break: break-word;
    margin-bottom: 6px;
}
.vc-rc__post {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    color: #757a82;
    word-break: break-word;
}
#right-comments-sidebar a.vc-rc__link:hover .vc-rc__post { color: #2d81e0; }
.vc-rc__city {
    display: inline-block;
    vertical-align: 1px;
    font-size: 11px;
    font-weight: 600;
    line-height: 15px;
    padding: 1px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    margin-right: 6px;
    white-space: nowrap;
    letter-spacing: -0.01em;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.vc-rc__city-icon {
    font-style: normal;
    font-size: 11px;
    line-height: 1;
    margin-right: 3px;
    vertical-align: 0;
}
#right-comments-sidebar a.vc-rc__link:hover .vc-rc__city,
ul.vc-rc a.vc-rc__link:hover .vc-rc__city {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
}
.vc-rc-empty { padding: 14px 16px; font-size: 13px; color: #9e9fa3; }

/* --- Соцкнопки в сайдбаре: иконка родительской темы, светлый фон --- */
#right-comments-sidebar .social-links { padding: 12px 16px 14px !important; }
#right-comments-sidebar .social-buttons { margin: 0 !important; }
#right-comments-sidebar .social-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #f0f2f5 !important;
}
#right-comments-sidebar .social-button::before {
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    background-size: 24px 24px !important;
}
#right-comments-sidebar .social-button--telegram { background: #e8f4fb !important; }
#right-comments-sidebar .social-button--telegram:hover { background: #d4ebf8 !important; opacity: 1 !important; }

/* ==========================================================
   v6 — МОБИЛЬНОЕ МЕНЮ (кнопка + выезжающая панель)
   ========================================================== */

.vc-burger {
    display: none;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0 8px 0 -8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
}
.vc-burger:hover { background: #f0f2f5; }
.vc-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #1c1c1c;
    transition: transform .25s ease, opacity .2s ease;
}
body.vc-nav-open .vc-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.vc-nav-open .vc-burger span:nth-child(2) { opacity: 0; }
body.vc-nav-open .vc-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.vc-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 20, 24, .45);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

/* ==========================================================
   v6 — АДАПТИВНАЯ ВЕРСИЯ
   ========================================================== */

/* Ноутбуки: чуть уже колонки */
@media (max-width: 1200px) {
    body #page #content .site-content-inner,
    .site-content-inner {
        grid-template-columns: 200px minmax(0, 1fr) 270px !important;
        gap: 16px !important;
    }
}

/* Планшеты: левая колонка уходит в выезжающее меню */
@media (max-width: 1024px) {
    .vc-burger { display: inline-flex; }

    body #page #content .site-content-inner,
    body.sidebar-right #page #content .site-content-inner,
    body.sidebar-left #page #content .site-content-inner,
    .site-content-inner {
        grid-template-columns: minmax(0, 1fr) 280px !important;
        grid-template-areas: "main-content right-sidebar" !important;
        padding: 16px !important;
    }

    #left-nav-sidebar,
    .admin-bar #left-nav-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 290px !important;
        max-width: 85vw !important;
        height: 100% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        background: #f0f2f5 !important;
        padding: 16px 12px 24px !important;
        z-index: 1100 !important;
        transform: translateX(-105%);
        transition: transform .28s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 0 0 40px rgba(0, 0, 0, .18);
        grid-area: auto !important;
    }
    body.vc-nav-open #left-nav-sidebar { transform: translateX(0); }
    body.vc-nav-open .vc-nav-overlay { opacity: 1; visibility: visible; }
    body.vc-nav-open { overflow: hidden; }

    .vc-nav-list li a { padding: 11px 16px !important; font-size: 15px !important; }
}

/* Телефоны: одна колонка */
@media (max-width: 768px) {
    html { font-size: 15px; }

    #masthead.site-header,
    .site-header,
    .site-header-inner,
    .site-header-inner.fixed { height: 52px !important; }
    .site-header-inner,
    .site-header-inner.fixed { padding: 0 12px !important; }
    .site-logotype img { height: 28px !important; max-width: 130px !important; }

    body #page #content .site-content-inner,
    body.sidebar-right #page #content .site-content-inner,
    body.sidebar-left #page #content .site-content-inner,
    .site-content-inner {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: "main-content" "right-sidebar" !important;
        padding: 10px 0 !important;
        gap: 10px !important;
    }

    /* Карточки на всю ширину, как в приложении vc.ru */
    .vc-date-bar,
    .vc-digest-block,
    .home-header,
    .post-card,
    #primary .post-card,
    .navigation.pagination,
    .single #primary article,
    #right-comments-sidebar .widget,
    #right-comments-sidebar .vc-sidebar-block {
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .post-card, #primary .post-card { margin-bottom: 10px !important; }

    #right-comments-sidebar,
    .admin-bar #right-comments-sidebar {
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        gap: 10px !important;
    }

    .vc-date-bar { padding: 12px 16px; margin-bottom: 10px; }
    .vc-digest-block { margin-bottom: 10px; }
    .vc-digest-item { padding: 12px 16px; }
    .vc-digest-more { padding: 10px 16px; }
    .home-content { margin-bottom: 10px; }
    .home-header { padding: 12px 16px !important; }

    .post-card__thumbnail img { height: auto !important; aspect-ratio: 16 / 9; }
    .post-card__thumbnail .post-card__category,
    .post-card__category { left: 12px !important; bottom: 12px !important; }
    .post-card__title a,
    .post-card__title span a {
        font-size: 18px !important;
        padding: 14px 16px 6px !important;
    }
    .post-card__description { padding: 0 16px 12px !important; font-size: 15px !important; }
    .post-card__meta { padding: 10px 16px 12px !important; flex-wrap: wrap; }
    .post-card:hover .post-card__thumbnail img { transform: none !important; }

    /* Одиночная запись */
    .entry-header { padding: 16px 16px 0 !important; }
    .entry-header .entry-title { font-size: 22px !important; }
    .entry-meta { padding: 10px 16px !important; flex-wrap: wrap; gap: 8px 14px !important; }
    .entry-content { padding: 12px 16px 20px !important; font-size: 16px !important; }
    .entry-content img { border-radius: 6px; }
    .entry-content table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 14px;
    }
    .entry-content iframe,
    .entry-content video { max-width: 100% !important; }
    .breadcrumb { padding: 0 16px; font-size: 13px; }
    .comments-area,
    #primary .related-posts,
    #primary .related-posts.fixed { padding-left: 16px !important; padding-right: 16px !important; }
    .entry-social .social-buttons { flex-wrap: wrap; gap: 6px; }

    /* Пагинация */
    .navigation.pagination { padding: 10px 12px !important; }
    .pagination .nav-links { flex-wrap: wrap; justify-content: center; }
    .pagination .nav-links .page-numbers { padding: 6px 10px !important; }

    /* Подвал */
    .site-footer-container { display: block !important; margin-top: 10px !important; }
    .site-footer-inner.fixed { padding: 16px !important; text-align: center; }

    .scrolltop.js-scrolltop { width: 40px !important; height: 40px !important; right: 14px !important; bottom: 14px !important; }

    /* Без hover-эффектов на тач-экранах */
    .post-card:hover, #primary .post-card:hover { box-shadow: none !important; }
}

@media (max-width: 380px) {
    .post-card__title a,
    .post-card__title span a { font-size: 17px !important; }
    .site-logotype img { max-width: 110px !important; }
}

@media (prefers-reduced-motion: reduce) {
    #left-nav-sidebar, .vc-nav-overlay, .vc-burger span, .post-card { transition: none !important; animation: none !important; }
}

/* ==========================================================
   v7 — ПОГОДА: виджет у даты
   ========================================================== */

.vc-date-bar { justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.vc-date-bar__date { cursor: default; }
.vc-date-bar__date::after { display: none !important; content: none !important; }

.vc-weather-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #eef6ff 0%, #f3f0ff 100%);
    border: 1px solid #e3ebf7;
    color: #1c1c1c !important;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.vc-weather-chip:hover {
    border-color: #c9dbf5;
    box-shadow: 0 4px 14px rgba(45, 129, 224, .15);
    transform: translateY(-1px);
}
.vc-weather-chip__icon { font-size: 18px; line-height: 1; }
.vc-weather-chip__temp { font-weight: 700; font-size: 15px; }
.vc-weather-chip__desc { color: #5c5c5c; }
.vc-weather-chip__range { color: #9e9fa3; font-size: 13px; }
.vc-weather-chip__city {
    font-size: 11px;
    font-weight: 600;
    color: #2d81e0;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ==========================================================
   v7 — ПОГОДА: раздел /pogoda/
   ========================================================== */

.wx-page { display: flex; flex-direction: column; gap: 12px; }

.wx-crumbs {
    font-size: 13px;
    color: #9e9fa3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.wx-crumbs a { color: #2d81e0 !important; }
.wx-crumbs a:hover { text-decoration: underline; }
.wx-crumbs__sep { color: #c8cdd5; }

.wx-h1 {
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #1c1c1c !important;
    margin: 0 !important;
    font-family: 'Inter', sans-serif !important;
}

.wx-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}
.wx-tabs::-webkit-scrollbar { display: none; }
.wx-tab {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    color: #1c1c1c !important;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: background .15s, color .15s;
}
.wx-tab:hover { background: #f5f6f8; }
.wx-tab.is-active { background: #1c1c1c; color: #fff !important; }

.wx-block,
.wx-day,
.wx-now {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    padding: 18px 20px;
}
.wx-block__title,
.wx-day__title {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 14px !important;
    color: #1c1c1c !important;
    font-family: 'Inter', sans-serif !important;
}

/* --- Сейчас --- */
.wx-now {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px 24px;
    align-items: center;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
}
.wx-now.wx-type-clear  { background: linear-gradient(135deg, #f59e0b 0%, #f97316 55%, #ec4899 100%); }
.wx-now.wx-type-cloudy { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }
.wx-now.wx-type-rain,
.wx-now.wx-type-storm  { background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%); }
.wx-now.wx-type-snow   { background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%); }
.wx-now.wx-type-fog    { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); }
.wx-now.is-night       { background: linear-gradient(135deg, #1e293b 0%, #312e81 100%); }
.wx-now::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    pointer-events: none;
}
.wx-now__label { font-size: 13px; opacity: .85; font-weight: 500; }
.wx-now__row { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.wx-now__icon { font-size: 48px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
.wx-now__temp { font-size: 56px; font-weight: 700; letter-spacing: -2px; line-height: 1; }
.wx-now__desc { font-size: 15px; font-weight: 500; }
.wx-now__range { font-size: 13px; opacity: .85; margin-top: 4px; }
.wx-now__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, auto));
    gap: 10px 20px;
    margin: 0;
    position: relative;
    z-index: 1;
}
.wx-now__facts dt { font-size: 12px; opacity: .75; }
.wx-now__facts dd { font-size: 15px; font-weight: 600; margin: 2px 0 0; }
.wx-now__upd { grid-column: 1 / -1; font-size: 12px; opacity: .7; }

/* --- Карточка дня --- */
.wx-day__head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.wx-day__icon { font-size: 44px; line-height: 1; }
.wx-day__temps { display: flex; align-items: baseline; gap: 10px; }
.wx-day__max { font-size: 34px; font-weight: 700; letter-spacing: -1px; color: #1c1c1c; }
.wx-day__min { font-size: 20px; color: #9e9fa3; font-weight: 500; }
.wx-day__desc { font-size: 14px; color: #5c5c5c; margin-top: 2px; }

.wx-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin: 0;
}
.wx-facts > div {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 10px 12px;
}
.wx-facts dt { font-size: 12px; color: #9e9fa3; }
.wx-facts dd { font-size: 14px; font-weight: 600; color: #1c1c1c; margin: 2px 0 0; }

.wx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wx-two__link { display: block; color: inherit !important; border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.wx-two__link:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.wx-two__link .wx-day { height: 100%; }
.wx-two .wx-facts { grid-template-columns: repeat(2, 1fr); }

/* --- По времени суток --- */
.wx-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wx-part {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.wx-part__name { font-size: 13px; font-weight: 600; color: #5c5c5c; }
.wx-part__icon { font-size: 30px; line-height: 1.2; }
.wx-part__temp { font-size: 16px; font-weight: 700; color: #1c1c1c; }
.wx-part__desc { font-size: 12px; color: #757a82; line-height: 1.3; min-height: 2.6em; }
.wx-part__pop { font-size: 12px; color: #2d81e0; }

/* --- Почасовой --- */
.wx-hours {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.wx-hour {
    flex: 0 0 68px;
    scroll-snap-align: start;
    background: #f5f7fa;
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wx-hour:first-child { background: #eaf2fd; }
.wx-hour__time { font-size: 12px; color: #757a82; font-weight: 500; }
.wx-hour__icon { font-size: 24px; line-height: 1.2; }
.wx-hour__temp { font-size: 15px; font-weight: 700; color: #1c1c1c; }
.wx-hour__pop { font-size: 11px; color: #2d81e0; min-height: 14px; }
.wx-hour__wind { font-size: 11px; color: #9e9fa3; }

/* --- Календарь 30 дней --- */
.wx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
}
.wx-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 12px;
    background: #f5f7fa;
    color: #1c1c1c !important;
    text-align: center;
    border: 1.5px solid transparent;
    transition: background .15s, border-color .15s, transform .15s;
}
.wx-cell:hover { background: #eaf2fd; transform: translateY(-1px); }
.wx-cell.is-weekend .wx-cell__wd { color: #e5484d; }
.wx-cell.is-current { border-color: #2d81e0; background: #eaf2fd; }
.wx-cell.is-trend { background: #fafbfc; }
.wx-cell.is-trend .wx-cell__icon { opacity: .75; }
.wx-cell__wd { font-size: 12px; font-weight: 600; color: #5c5c5c; }
.wx-cell__date { font-size: 12px; color: #9e9fa3; }
.wx-cell__icon { font-size: 26px; line-height: 1.3; }
.wx-cell__max { font-size: 16px; font-weight: 700; }
.wx-cell__min { font-size: 13px; color: #9e9fa3; }
.wx-cell__pop { font-size: 11px; color: #2d81e0; min-height: 14px; }

/* --- Навигация по датам --- */
.wx-datenav { display: flex; justify-content: space-between; gap: 8px; }
.wx-datenav a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    font-size: 14px;
    font-weight: 500;
    color: #2d81e0 !important;
}
.wx-datenav a:hover { background: #eaf2fd; }

/* --- SEO-текст и FAQ --- */
.wx-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #2a2a2a;
    margin: 0 0 12px;
}
.wx-text p:last-child { margin-bottom: 0; }
.wx-text a { color: #2d81e0 !important; border-bottom: 1px solid rgba(45,129,224,.3); }
.wx-text a:hover { border-bottom-color: #2d81e0; }

.wx-faq__item { border-top: 1px solid #f0f2f5; }
.wx-faq__item:first-of-type { border-top: 0; }
.wx-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 28px 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1c1c1c;
    position: relative;
}
.wx-faq__item summary::-webkit-details-marker { display: none; }
.wx-faq__item summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 10px;
    font-size: 20px;
    color: #9e9fa3;
    transition: transform .2s;
}
.wx-faq__item[open] summary::after { transform: rotate(45deg); }
.wx-faq__item p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #5c5c5c; }

/* --- Адаптив раздела погоды --- */
@media (max-width: 1200px) {
    .wx-two { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .vc-date-bar { padding: 10px 16px; }
    .vc-weather-chip__desc,
    .vc-weather-chip__city { display: none; }

    .wx-page { gap: 10px; }
    .wx-crumbs, .wx-h1, .wx-tabs, .wx-datenav { padding-left: 16px; padding-right: 16px; }
    .wx-h1 { font-size: 22px !important; }

    .wx-block, .wx-day, .wx-now { border-radius: 0; box-shadow: none; padding: 16px; }
    .wx-two { gap: 10px; }
    .wx-two__link { border-radius: 0; }
    .wx-two__link:hover { transform: none; box-shadow: none; }

    .wx-now { grid-template-columns: 1fr; }
    .wx-now__temp { font-size: 48px; }
    .wx-now__icon { font-size: 40px; }
    .wx-now__facts { grid-template-columns: repeat(2, 1fr); }

    .wx-parts { grid-template-columns: repeat(2, 1fr); }
    .wx-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .wx-cell { padding: 8px 2px; }
    .wx-cell__icon { font-size: 22px; }
    .wx-cell__date { font-size: 11px; }
    .wx-text p { font-size: 16px; }
}

@media (max-width: 400px) {
    .wx-grid { grid-template-columns: repeat(3, 1fr); }
    .vc-weather-chip__range { display: none; }
}

/* ==========================================================
   v8 — РАЗДЕЛЫ РУБРИК: карточка «главное» в записи
   ========================================================== */

.rb-card {
    background: #f7f8fa;
    border: 1px solid #eceef1;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 0 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.45;
}
.rb-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rb-card__emoji { font-size: 20px; line-height: 1; }
.rb-card__title { font-weight: 700; font-size: 16px; color: #1c1c1c; }

.rb-rows { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.rb-row { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rb-row dt { font-size: 12px; color: #9e9fa3; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; display: flex; align-items: center; gap: 5px; }
.rb-row dd { margin: 0; color: #1c1c1c; font-weight: 500; overflow-wrap: anywhere; }
.rb-row dd a { color: #2d81e0 !important; text-decoration: none; }
.rb-row dd a:hover { text-decoration: underline; }
.rb-ico { font-size: 13px; text-transform: none; }

.rb-chips-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.rb-chips-label { font-size: 12px; color: #9e9fa3; text-transform: uppercase; letter-spacing: .02em; margin-right: 4px; font-weight: 500; }
.rb-chip { background: #fff; border: 1px solid #e3e6ea; border-radius: 999px; padding: 4px 11px; font-size: 13px; color: #3b3d41; }

.rb-list { margin-top: 14px; }
.rb-list-title { font-size: 12px; color: #9e9fa3; text-transform: uppercase; letter-spacing: .02em; font-weight: 500; margin-bottom: 4px; }
.rb-list ul { margin: 0 !important; padding-left: 20px !important; }
.rb-list li { margin: 2px 0 !important; }

.rb-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rb-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 10px;
    background: #fff; border: 1px solid #dfe2e6;
    color: #1c1c1c !important; font-weight: 600; font-size: 14px;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.rb-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.rb-btn.is-primary { background: #2d81e0; border-color: #2d81e0; color: #fff !important; }
.rb-btn.is-primary:hover { background: #1f6fcb; }

.rb-map { margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid #e3e6ea; height: 260px; background: #eef0f3; }
.rb-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Строка в карточках ленты */
.rb-card-meta {
    display: block;
    font-size: 13px;
    color: #6b6e74;
    font-weight: 500;
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .rb-card { padding: 14px; border-radius: 12px; }
    .rb-rows { grid-template-columns: 1fr; gap: 8px; }
    .rb-btn { flex: 1 1 100%; justify-content: center; }
    .rb-map { height: 220px; }
}

/* ==========================================================
   v9 — СТРАНИЦА РАЗДЕЛА: шапка как на vc.ru, подписка, сортировка
   ========================================================== */

.rb-hero {
    --rb: #5b9cf6;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0 14px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.rb-hero__cover {
    position: relative;
    height: 190px;
    background: var(--rb);
    background: linear-gradient(135deg, color-mix(in srgb, var(--rb) 85%, #fff) 0%, var(--rb) 55%, color-mix(in srgb, var(--rb) 70%, #000) 100%);
    overflow: hidden;
}
.rb-hero__pattern {
    position: absolute; inset: -30px -20px;
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 26px 10px;
    transform: rotate(-12deg);
    opacity: .16; font-size: 38px; line-height: 1;
    pointer-events: none; user-select: none;
    animation: rb-drift 40s linear infinite;
}
.rb-hero__pattern i { font-style: normal; text-align: center; filter: grayscale(.2); }
@keyframes rb-drift { from { transform: rotate(-12deg) translateX(0); } to { transform: rotate(-12deg) translateX(-60px); } }
@media (prefers-reduced-motion: reduce) { .rb-hero__pattern { animation: none; } }

.rb-hero__body { padding: 0 24px 0; position: relative; }
.rb-hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -48px; }
.rb-hero__avatar {
    width: 96px; height: 96px; border-radius: 50%;
    background: color-mix(in srgb, var(--rb) 22%, #fff);
    border: 4px solid #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 46px; line-height: 1;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    position: relative; z-index: 1;
    transition: transform .25s ease;
}
.rb-hero__avatar:hover { transform: scale(1.05) rotate(-4deg); }
.rb-hero__actions { display: flex; align-items: center; gap: 8px; padding-bottom: 4px; }
.rb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    font: 600 14px/1 'Inter', sans-serif;
    padding: 10px 18px; border-radius: 999px;
    text-decoration: none !important; cursor: pointer;
    border: 0; line-height: 1; transition: all .15s ease;
    white-space: nowrap; box-sizing: border-box;
}
.rb-btn:active { transform: scale(.97); }
.rb-btn--tg {
    background: #2AABEE; color: #fff !important;
}
.rb-btn--tg:hover {
    background: #229ed9; box-shadow: 0 4px 14px rgba(42,171,238,.35); color: #fff !important;
}
.rb-btn--share {
    background: #eef1f5; color: #2c2d30 !important;
}
.rb-btn--share:hover {
    background: #e2e6eb; color: #111 !important;
}
.rb-btn svg { flex-shrink: 0; }

.rb-sub {
    border: 0; cursor: pointer;
    background: #2d81e0; color: #fff;
    font: 600 15px/1 'Inter', sans-serif;
    padding: 12px 20px; border-radius: 999px;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.rb-sub:hover { background: #1f6fcb; box-shadow: 0 4px 14px rgba(45,129,224,.3); }
.rb-sub:active { transform: scale(.97); }
.rb-sub .rb-sub__off { display: none; }
.rb-sub.is-subscribed { background: #eef1f5; color: #3b3d41; }
.rb-sub.is-subscribed:hover { background: #e3e7ec; box-shadow: none; }
.rb-sub.is-subscribed .rb-sub__on { display: none; }
.rb-sub.is-subscribed .rb-sub__off { display: inline; }
.rb-sub.is-pulse { animation: rb-pulse .4s ease; }
@keyframes rb-pulse { 50% { transform: scale(1.06); } }

.rb-more, .rb-sort { position: relative; }
.rb-more__btn {
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: #eef1f5; color: #3b3d41;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.rb-more__btn:hover { background: #e3e7ec; }
.rb-more__menu, .rb-sort__menu {
    position: absolute; z-index: 30;
    min-width: 220px; padding: 6px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.rb-more__menu { right: 0; top: calc(100% + 6px); }
.rb-more.is-open .rb-more__menu, .rb-sort.is-open .rb-sort__menu { opacity: 1; visibility: visible; transform: none; }
.rb-more__menu a, .rb-more__menu button, .rb-sort__menu a {
    display: block; width: 100%; text-align: left;
    padding: 9px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
    font: 500 14px/1.3 'Inter', sans-serif; color: #1c1c1c !important; text-decoration: none !important;
}
.rb-more__menu a:hover, .rb-more__menu button:hover, .rb-sort__menu a:hover { background: #f2f4f7; }

.rb-hero__title {
    margin: 12px 0 0 !important;
    font: 700 26px/1.2 'Inter', sans-serif !important;
    color: #1c1c1c !important;
}
.rb-hero__handle { color: #9e9fa3; font-size: 15px; margin-top: 2px; }
.rb-hero__about { margin: 10px 0 0 !important; font-size: 16px; line-height: 1.5; color: #1c1c1c; max-width: 620px; }
.rb-hero__stats { margin-top: 12px; font-size: 15px; color: #1c1c1c; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rb-hero__stats b { font-weight: 700; }
.rb-hero__stats [hidden] { display: none !important; }
.rb-hero__dot { color: #c8cdd5; }
.js-rb-subs-empty { color: #6b6e74; }

.rb-hero__tabs { display: flex; gap: 24px; margin-top: 14px; }
.rb-hero__tab {
    position: relative; padding: 12px 0 14px;
    font-weight: 500; font-size: 15px; color: #6b6e74 !important; text-decoration: none !important;
}
.rb-hero__tab.is-active { color: #1c1c1c !important; }
.rb-hero__tab.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: #2d81e0; border-radius: 3px 3px 0 0;
}

/* Сортировка */
.rb-sort { margin: 0 0 12px 24px; display: inline-block; }
.rb-sort__btn {
    border: 0; background: none; cursor: pointer; padding: 6px 0;
    font: 500 15px/1 'Inter', sans-serif; color: #3b3d41;
    display: inline-flex; align-items: center; gap: 4px;
}
.rb-sort__btn svg { transition: transform .2s ease; }
.rb-sort.is-open .rb-sort__btn svg { transform: rotate(180deg); }
.rb-sort__menu { left: -6px; top: calc(100% + 4px); }
.rb-sort__menu a.is-active { color: #2d81e0 !important; background: #eef5fd; }

/* Пусто */
.rb-empty { background: #fff; border-radius: 16px; padding: 48px 24px; text-align: center; font-family: 'Inter', sans-serif; }
.rb-empty__icon { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.rb-empty__title { font-weight: 700; font-size: 18px; margin: 0 0 6px !important; color: #1c1c1c; }
.rb-empty__text { color: #6b6e74; margin: 0 !important; }
.rb-empty__text a { color: #2d81e0 !important; }

/* SEO-текст */
.rb-seo-text {
    background: #fff; border-radius: 16px; padding: 22px 24px; margin-top: 16px;
    font-family: 'Inter', sans-serif; font-size: 15px; line-height: 1.6; color: #3b3d41;
}
.rb-seo-text h2 { font-size: 20px !important; margin: 0 0 10px !important; color: #1c1c1c; }
.rb-seo-text h3 { font-size: 17px !important; margin: 16px 0 8px !important; color: #1c1c1c; }
.rb-seo-text p { margin: 0 0 10px !important; }
.rb-seo-text p:last-child { margin-bottom: 0 !important; }

/* Подписки в левом сайдбаре */
#left-nav-sidebar a.is-subscribed { position: relative; }
#left-nav-sidebar a.is-subscribed::after {
    content: '🔔'; font-size: 11px; margin-left: auto; opacity: .7;
}

@media (max-width: 640px) {
    .rb-hero { border-radius: 0; margin-left: -12px; margin-right: -12px; }
    .rb-hero__cover { height: 120px; }
    .rb-hero__body { padding: 0 16px; }
    .rb-hero__top { margin-top: -40px; }
    .rb-hero__avatar { width: 80px; height: 80px; font-size: 38px; }
    .rb-btn { padding: 8px 14px; font-size: 13px; gap: 5px; }
    .rb-btn svg { width: 15px; height: 15px; }
    .rb-sub { padding: 10px 16px; font-size: 14px; }
    .rb-more__btn { width: 38px; height: 38px; }
    .rb-hero__title { font-size: 22px !important; }
    .rb-hero__about { font-size: 15px; }
    .rb-sort { margin-left: 16px; }
    .rb-seo-text, .rb-empty { border-radius: 12px; padding: 18px 16px; }
}
/* ==========================================================
   v10 — ЛИЧНЫЙ КАБИНЕТ: вход/регистрация, статьи, заведения, оплата
   ========================================================== */

.lk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* --- Шапка: Написать / Войти / аватар --- */
.lk-head { display: flex; align-items: center; gap: 8px; margin-left: 10px; font-family: 'Inter', sans-serif; flex-shrink: 0; }
.lk-head__write {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border-radius: 10px;
    background: #2d81e0; color: #fff !important; text-decoration: none !important;
    font: 600 14px/1 'Inter', sans-serif;
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lk-head__write:hover { background: #1f6fcb; box-shadow: 0 4px 14px rgba(45,129,224,.3); }
.lk-head__write:active { transform: scale(.97); }
.lk-head__login {
    padding: 9px 14px; border-radius: 10px;
    background: #eef1f5; color: #1c1c1c !important; text-decoration: none !important;
    font: 600 14px/1 'Inter', sans-serif; transition: background .15s ease;
}
.lk-head__login:hover { background: #e3e7ec; }
.lk-head__user { position: relative; }
.lk-head__avatar { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; display: block; transition: box-shadow .15s ease; }
.lk-head__avatar img { width: 36px; height: 36px; border-radius: 50%; display: block; object-fit: cover; }
.lk-head__avatar:hover { box-shadow: 0 0 0 3px #e3ecf9; }
.lk-head__menu {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 1000;
    min-width: 220px; padding: 6px; background: #fff; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.04);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.lk-head__user.is-open .lk-head__menu { opacity: 1; visibility: visible; transform: none; }
.lk-head__name { padding: 8px 12px 10px; font-weight: 700; font-size: 15px; color: #1c1c1c; border-bottom: 1px solid #eef0f3; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-head__menu a { display: block; padding: 9px 12px; border-radius: 8px; font: 500 14px/1.3 'Inter', sans-serif; color: #1c1c1c !important; text-decoration: none !important; }
.lk-head__menu a:hover { background: #f2f4f7; }

/* --- Общие элементы --- */
.mos77-lk { font-family: 'Inter', sans-serif; color: #1c1c1c; }
.lk { max-width: 860px; }
.lk-card { background: #fff; border-radius: 16px; padding: 22px 24px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.lk-alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 12px; font-size: 15px; line-height: 1.45; animation: lk-in .25s ease; }
.lk-alert--ok   { background: #e8f7ee; color: #17663a; }
.lk-alert--err  { background: #fdecec; color: #a62a2a; }
.lk-alert--warn { background: #fff6e0; color: #8a5a00; }
.lk-alert a, .lk-alert .lk-link { color: inherit !important; text-decoration: underline !important; font-weight: 600; }
@keyframes lk-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.lk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 18px; border-radius: 10px; border: 0; cursor: pointer;
    background: #eef1f5; color: #1c1c1c !important; text-decoration: none !important;
    font: 600 15px/1.1 'Inter', sans-serif;
    transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lk-btn:hover { background: #e3e7ec; }
.lk-btn:active { transform: scale(.97); }
.lk-btn--primary { background: #2d81e0; color: #fff !important; }
.lk-btn--primary:hover { background: #1f6fcb; box-shadow: 0 4px 14px rgba(45,129,224,.3); }
.lk-btn--sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }
.lk-btn--block { width: 100%; }
.lk-link { background: none; border: 0; padding: 0; cursor: pointer; font: 500 14px/1.3 'Inter', sans-serif; color: #2d81e0 !important; text-decoration: none !important; }
.lk-link:hover { text-decoration: underline !important; }
.lk-link--danger { color: #d23b3b !important; }
.lk-inline { display: inline; margin: 0; }
.lk-note { font-size: 13px; color: #75777b; margin: 10px 0 0; line-height: 1.45; }

.lk-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 12px/1.4 'Inter', sans-serif; white-space: nowrap; }
.lk-badge--ok    { background: #e8f7ee; color: #17663a; }
.lk-badge--wait  { background: #fff3d6; color: #8a5a00; }
.lk-badge--err   { background: #fdecec; color: #a62a2a; }
.lk-badge--draft { background: #eef1f5; color: #5c5f66; }

/* --- Шапка кабинета --- */
.lk-hero { background: #fff; border-radius: 16px; overflow: hidden; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.lk-hero__cover { height: 130px; background: linear-gradient(120deg, #6aa8f7 0%, #2d81e0 45%, #7b5cf0 100%); background-size: 200% 200%; animation: lk-grad 14s ease infinite; }
@keyframes lk-grad { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lk-hero__body { padding: 0 24px; }
.lk-hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: -44px; flex-wrap: wrap; }
.lk-hero__avatar img { width: 92px; height: 92px; border-radius: 50%; border: 4px solid #fff; display: block; object-fit: cover; box-shadow: 0 2px 10px rgba(0,0,0,.08); background: #fff; }
.lk-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.lk-hero__name { margin: 12px 0 0 !important; font: 700 26px/1.2 'Inter', sans-serif !important; color: #1c1c1c !important; }
.lk-hero__meta { color: #75777b; font-size: 14px; margin-top: 4px; }
.lk-tabs { display: flex; gap: 22px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.lk-tabs::-webkit-scrollbar { display: none; }
.lk-tab { padding: 10px 0 12px; border-bottom: 2px solid transparent; font: 500 15px/1 'Inter', sans-serif; color: #75777b !important; text-decoration: none !important; white-space: nowrap; transition: color .15s ease, border-color .15s ease; }
.lk-tab:hover { color: #1c1c1c !important; }
.lk-tab.is-active { color: #1c1c1c !important; border-bottom-color: #2d81e0; font-weight: 600; }

/* --- Списки --- */
.lk-list { list-style: none; margin: 0; padding: 0; }
.lk-item { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid #eef0f3; margin: 0 !important; }
.lk-item:first-child { border-top: 0; padding-top: 0; }
.lk-item:last-child { padding-bottom: 0; }
.lk-item__thumb { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f2f4f7; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.lk-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lk-item__body { flex: 1; min-width: 0; }
.lk-item__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.lk-item__cat { font-size: 13px; color: #75777b; }
.lk-item__title { font: 600 16px/1.35 'Inter', sans-serif; color: #1c1c1c; }
.lk-item__title a { color: #1c1c1c !important; text-decoration: none !important; }
.lk-item__title a:hover { color: #2d81e0 !important; }
.lk-item__reason { margin-top: 6px; font-size: 13px; color: #a62a2a; background: #fdf3f3; padding: 6px 10px; border-radius: 8px; }
.lk-item__meta { margin-top: 4px; font-size: 13px; color: #9e9fa3; }
.lk-item__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.lk-empty { text-align: center; padding: 28px 10px; color: #5c5f66; }
.lk-empty__icon { font-size: 48px; line-height: 1; margin-bottom: 10px; animation: lk-float 3s ease-in-out infinite; }
@keyframes lk-float { 50% { transform: translateY(-6px); } }
.lk-empty__title { font: 700 19px/1.3 'Inter', sans-serif; color: #1c1c1c; margin: 0 0 6px !important; }
.lk-empty p { max-width: 460px; margin: 0 auto 16px; }

/* --- Формы --- */
.lk-form__title { font: 700 21px/1.3 'Inter', sans-serif !important; margin: 0 0 16px !important; color: #1c1c1c !important; }
.lk-field { display: block; margin: 0 0 14px; }
.lk-field > span { display: block; font: 600 14px/1.3 'Inter', sans-serif; margin-bottom: 6px; color: #1c1c1c; }
.lk-field input[type=text], .lk-field input[type=email], .lk-field input[type=password], .lk-field input[type=url],
.lk-field input[type=number], .lk-field select, .lk-field textarea,
.mos77-rb-field input[type=text], .mos77-rb-field input[type=url], .mos77-rb-field input[type=number],
.mos77-rb-field input[type=date], .mos77-rb-field input[type=datetime-local], .mos77-rb-field input[type=time],
.mos77-rb-field select, .mos77-rb-field textarea {
    width: 100%; max-width: 100%; box-sizing: border-box;
    padding: 11px 13px; border: 1px solid #dfe2e7; border-radius: 10px; background: #fff;
    font: 400 15px/1.4 'Inter', sans-serif; color: #1c1c1c;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lk-field input:focus, .lk-field select:focus, .lk-field textarea:focus,
.mos77-rb-field input:focus, .mos77-rb-field select:focus, .mos77-rb-field textarea:focus {
    outline: 0; border-color: #2d81e0; box-shadow: 0 0 0 3px rgba(45,129,224,.15);
}
.lk-field input[type=file] { font-size: 14px; max-width: 100%; }
.lk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lk-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; margin: 0 0 14px; cursor: pointer; }
.lk-check input { margin-top: 2px; accent-color: #2d81e0; }
.lk-form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.lk-cover-prev img { max-width: 260px; height: auto; border-radius: 10px; display: block; margin-bottom: 8px; }
.lk-editor-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lk-editor-hint { font-size: 13px; color: #75777b; }
.lk-form .wp-editor-wrap { border-radius: 10px; overflow: hidden; border: 1px solid #dfe2e7; }
.lk-form .wp-editor-container { border: 0 !important; }
.lk-form .wp-editor-area { font: 400 16px/1.6 'Inter', sans-serif !important; }

/* Поля карточки заведения */
.mos77-rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; padding: 6px 0; }
.mos77-rb-field.is-wide { grid-column: 1 / -1; }
.mos77-rb-field > label { display: block; font: 600 13px/1.3 'Inter', sans-serif; margin-bottom: 6px; color: #5c5f66; }
.mos77-rb-field .description { font-size: 12px; color: #9e9fa3; margin: 4px 0 0; }
.mos77-rb-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mos77-rb-check { font-weight: 400 !important; display: inline-flex !important; align-items: center; gap: 6px; margin-top: 28px; font-size: 14px; color: #1c1c1c !important; }
.mos77-rb-checks .mos77-rb-check { margin-top: 0; }
.mos77-rb-check input { accent-color: #2d81e0; }

/* Выбор типа заведения */
.lk-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lk-type {
    --rb: #2d81e0;
    display: flex; flex-direction: column; gap: 4px; padding: 20px;
    border-radius: 14px; border: 2px solid #eef0f3; text-decoration: none !important;
    background: linear-gradient(160deg, color-mix(in srgb, var(--rb) 10%, #fff), #fff 60%);
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lk-type:hover { border-color: var(--rb); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.lk-type__icon { font-size: 36px; line-height: 1; margin-bottom: 6px; }
.lk-type__name { font: 700 17px/1.3 'Inter', sans-serif; color: #1c1c1c; }
.lk-type__sec { font-size: 13px; color: #75777b; }
.lk-tariffs-hint { margin-top: 16px; font-size: 14px; color: #5c5f66; }

/* --- Оплата --- */
.lk-pay__place { display: flex; align-items: center; gap: 14px; padding: 14px; background: #f7f8fa; border-radius: 12px; margin-bottom: 18px; }
.lk-tariffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.lk-tariff { position: relative; cursor: pointer; display: block; margin: 0; }
.lk-tariff input { position: absolute; opacity: 0; pointer-events: none; }
.lk-tariff__box {
    display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box;
    padding: 18px 16px; border-radius: 14px; border: 2px solid #e3e6eb; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.lk-tariff:hover .lk-tariff__box { border-color: #b9d3f3; transform: translateY(-2px); }
.lk-tariff input:checked + .lk-tariff__box { border-color: #2d81e0; box-shadow: 0 0 0 4px rgba(45,129,224,.14); background: #f6faff; }
.lk-tariff input:focus-visible + .lk-tariff__box { outline: 2px solid #2d81e0; outline-offset: 2px; }
.lk-tariff__tag { position: absolute; top: -10px; right: 12px; padding: 3px 9px; border-radius: 999px; background: linear-gradient(90deg, #f4734f, #ec4899); color: #fff; font: 700 11px/1.3 'Inter', sans-serif; letter-spacing: .02em; }
.lk-tariff__label { font: 600 15px/1.3 'Inter', sans-serif; color: #5c5f66; }
.lk-tariff__price { font: 800 26px/1.15 'Inter', sans-serif; color: #1c1c1c; }
.lk-tariff__per { font-size: 13px; color: #17663a; }
.lk-pay__perks { list-style: none; margin: 0 0 18px; padding: 0; }
.lk-pay__perks li { margin: 0 0 6px; font-size: 14px; color: #3b3d41; }
.lk-paid { text-align: center; padding: 34px 24px; }
.lk-paid__icon { font-size: 56px; line-height: 1; margin-bottom: 10px; animation: lk-pop .5s cubic-bezier(.3,1.6,.6,1); }
@keyframes lk-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.lk-paid h2 { font: 700 22px/1.3 'Inter', sans-serif !important; margin: 0 0 8px !important; }

.lk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lk-table th { text-align: left; font-weight: 600; color: #75777b; padding: 8px 10px; border-bottom: 1px solid #eef0f3; }
.lk-table td { padding: 12px 10px; border-bottom: 1px solid #f2f4f7; vertical-align: middle; }
.lk-table tr:last-child td { border-bottom: 0; }

/* --- Вход / регистрация --- */
.lk-auth { display: flex; justify-content: center; padding: 24px 0 40px; }
.lk-auth__card {
    width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 30px 30px 26px;
    box-shadow: 0 10px 40px rgba(28,40,64,.08), 0 1px 2px rgba(0,0,0,.04);
    animation: lk-in .3s ease;
}
.lk-auth__logo {
    width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
    background: linear-gradient(135deg, #6aa8f7, #2d81e0 55%, #7b5cf0); box-shadow: 0 8px 20px rgba(45,129,224,.3);
}
.lk-auth__title { text-align: center; font: 700 24px/1.25 'Inter', sans-serif !important; margin: 0 0 6px !important; }
.lk-auth__sub { text-align: center; color: #75777b; font-size: 15px; margin: 0 0 18px; }
.lk-auth__tabs { display: flex; background: #f2f4f7; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.lk-auth__tabs a {
    flex: 1; text-align: center; padding: 10px; border-radius: 9px;
    font: 600 15px/1 'Inter', sans-serif; color: #75777b !important; text-decoration: none !important;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.lk-auth__tabs a.is-active { background: #fff; color: #1c1c1c !important; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.lk-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: 14px; }
.lk-auth__row .lk-check { margin: 0; }
.lk-auth__row a, .lk-auth__foot a { color: #2d81e0 !important; text-decoration: none !important; }
.lk-auth__foot { text-align: center; margin: 16px 0 0; font-size: 14px; }
.lk-socials { display: grid; gap: 10px; }
.lk-social {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 16px; border-radius: 12px; text-decoration: none !important;
    font: 600 15px/1 'Inter', sans-serif; transition: filter .15s ease, transform .15s ease;
}
.lk-social:hover { filter: brightness(.95); }
.lk-social:active { transform: scale(.98); }
.lk-social__ico { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 800 12px/1 'Inter', sans-serif; }
.lk-social--ya { background: #1c1c1c; color: #fff !important; }
.lk-social--ya .lk-social__ico { background: #fc3f1d; color: #fff; font-size: 14px; }
.lk-social--vk { background: #0077ff; color: #fff !important; }
.lk-social--vk .lk-social__ico { background: #fff; color: #0077ff; font-size: 10px; }
.lk-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #9e9fa3; font-size: 13px; }
.lk-or::before, .lk-or::after { content: ''; flex: 1; height: 1px; background: #eef0f3; }


@media (prefers-reduced-motion: reduce) {
    .lk-hero__cover, .lk-empty__icon, .lk-paid__icon { animation: none; }
}

@media (max-width: 768px) {
    .lk-head { gap: 6px; margin-left: 6px; }
    .lk-head__write { padding: 8px 10px; }
    .lk-head__write span { display: none; }
    .lk-head__login { padding: 8px 12px; font-size: 13px; }
    .lk-head__avatar img { width: 32px; height: 32px; }
}

@media (max-width: 640px) {
    .lk-card { border-radius: 12px; padding: 18px 16px; }
    .lk-hero { border-radius: 0; margin-left: -12px; margin-right: -12px; }
    .lk-hero__cover { height: 96px; }
    .lk-hero__body { padding: 0 16px; }
    .lk-hero__top { margin-top: -36px; }
    .lk-hero__avatar img { width: 76px; height: 76px; }
    .lk-hero__actions { width: 100%; padding-bottom: 0; }
    .lk-hero__actions .lk-btn { flex: 1; padding: 10px 12px; font-size: 14px; }
    .lk-hero__name { font-size: 22px !important; }
    .lk-row { grid-template-columns: 1fr; }
    .lk-item__thumb { width: 64px; height: 52px; }
    .lk-form__actions .lk-btn { flex: 1 1 100%; }
    .lk-tariffs { grid-template-columns: 1fr; }
    .lk-table thead { display: none; }
    .lk-table tr { display: block; padding: 10px 0; border-bottom: 1px solid #eef0f3; }
    .lk-table td { display: block; padding: 2px 0; border: 0; }
    .lk-auth { padding: 8px 0 24px; }
    .lk-auth__card { padding: 24px 18px 20px; border-radius: 16px; }
}

/* ==========================================================
   v11 — ШАПКА: ровное выравнивание (десктоп + телефон)
   Порядок: [меню] [логотип] ……… [поиск] [Telegram] [Написать] [Войти/аватар]
   ========================================================== */

.site-header-inner > * { flex-shrink: 0; }
.site-header-inner > .site-branding { min-width: 0; flex-shrink: 1 !important; }

/* Все кнопки справа — одной высоты и по одной линии */
.site-header .header-search { width: 40px !important; height: 40px !important; margin: 0 0 0 auto !important; }
.site-header .social-links { display: flex !important; align-items: center !important; margin: 0 0 0 4px !important; padding: 0 !important; }
.site-header .social-buttons { display: flex !important; align-items: center !important; gap: 6px !important; margin: 0 !important; padding: 0 !important; }
.site-header .social-button {
    width: 36px !important; height: 36px !important; min-width: 36px !important;
    margin: 0 !important; padding: 0 !important; border-radius: 50% !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    background: #e8f4fb !important; cursor: pointer; transition: background .15s ease !important;
}
.site-header .social-button:hover { background: #d4ebf8 !important; }
.site-header .social-button::before { width: 20px !important; height: 20px !important; margin: 0 !important; background-size: 20px 20px !important; }

.lk-head { margin-left: 8px; height: 40px; }
.lk-head__write, .lk-head__login { height: 36px; box-sizing: border-box; padding-top: 0 !important; padding-bottom: 0 !important; display: inline-flex !important; align-items: center; justify-content: center; white-space: nowrap; }
.lk-head__user { display: flex; align-items: center; }

@media (max-width: 1024px) {
    .vc-burger { margin: 0 6px 0 -6px !important; }
}

@media (max-width: 768px) {
    .site-header-inner, .site-header-inner.fixed { padding: 0 10px !important; }
    .site-logotype img { height: 26px !important; max-width: 112px !important; }


    .site-header .header-search { width: 38px !important; height: 38px !important; border-radius: 10px !important; }
    .lk-head { gap: 6px; margin-left: 4px; height: 38px; }
    .lk-head__write { width: 36px; height: 36px; padding: 0 !important; border-radius: 10px; }
    .lk-head__write svg { width: 17px; height: 17px; }
    .lk-head__write span { display: none; }
    .lk-head__login { height: 36px; padding: 0 12px !important; font-size: 14px; border-radius: 10px; }
    .lk-head__avatar img { width: 34px; height: 34px; }
    .lk-head__menu { right: -4px; min-width: 210px; }
}

/* Узкие телефоны: Telegram остаётся в правой колонке, в шапке не помещается */
@media (max-width: 430px) {
    .site-header .social-links { display: none !important; }
}

@media (max-width: 360px) {
    .site-header-inner, .site-header-inner.fixed { padding: 0 8px !important; }
    .vc-burger { margin: 0 2px 0 -4px !important; }
    .site-logotype img { max-width: 96px !important; }
    .lk-head { gap: 4px; }
    .lk-head__login { padding: 0 10px !important; font-size: 13px; }
}

/* ==========================================================
   v12 — ФИКСИРОВАННАЯ ШАПКА (ПК и телефон)
   sticky ломается из-за overflow у родителей темы, поэтому fixed + отступ сверху
   ========================================================== */

:root { --mos77-head-h: 56px; --mos77-head-top: 0px; }
.admin-bar { --mos77-head-top: 32px; }

#masthead.site-header,
.site-header {
    position: fixed !important;
    top: var(--mos77-head-top) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

body { padding-top: var(--mos77-head-h) !important; }
html { scroll-padding-top: calc(var(--mos77-head-h) + var(--mos77-head-top) + 12px); }

@media screen and (max-width: 782px) {
    .admin-bar { --mos77-head-top: 46px; }
}
@media (max-width: 768px) {
    :root { --mos77-head-h: 52px; }
}
/* На узких экранах WordPress делает админ-панель прокручиваемой — фиксируем её, чтобы шапка не «отрывалась» */
@media screen and (max-width: 600px) {
    #wpadminbar { position: fixed !important; }
}


/* ==========================================================
   v13 — КАРТОЧКИ КАК VC.RU
   рубрика без фото, время «Сегодня в …», комментарии и просмотры
   ========================================================== */

/* Рубрика у записей без картинки — плашка над заголовком, а не поверх текста */
.vc-card__head {
    padding: 18px 20px 0;
    line-height: 1;
}
.post-card .post-card__category.post-card__category--inline,
#primary .post-card .post-card__category.post-card__category--inline {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    background: rgba(242, 49, 4, .08) !important;
    color: #f23104 !important;
    letter-spacing: .4px !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
}
.post-card__category--inline span { color: inherit !important; }
.vc-card.post-card--thumbnail-no .post-card__title a,
.vc-card.post-card--thumbnail-no .post-card__title span a { padding-top: 10px !important; }

/* Описание прижимаем к футеру */
.vc-card .post-card__description { padding-bottom: 4px !important; }

/* Футер карточки */
.vc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 12px 20px;
    font-family: 'Inter', sans-serif;
}
.vc-card__time {
    font-size: 13px;
    color: #9e9fa3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.vc-card__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.vc-card__btn,
.vc-card__views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
}
.vc-card__btn {
    color: #595959 !important;
}
.vc-card__btn:hover {
    background: #f2f3f5;
    color: #1c1c1c !important;
}
.vc-card__btn--comments:hover { color: #2d81e0 !important; background: rgba(45, 129, 224, .08); }
.vc-card__btn svg,
.vc-card__views svg { flex-shrink: 0; display: block; }
.vc-card__count:empty { display: none; }
.vc-card__views {
    color: #9e9fa3;
    cursor: default;
    padding-right: 6px;
}

/* «Показать ещё» в дайджесте */
.vc-digest-more a.js-digest-more { cursor: pointer; }
.vc-digest-more a.is-loading { opacity: .6; pointer-events: none; }
.vc-digest-item--new { animation: fadeUp .3s ease both; }
.vc-digest-item:last-of-type { border-bottom: 1px solid #f0f2f5; }
.vc-digest-more { border-top: none; }
.vc-digest-block > .vc-digest-item:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .vc-card__head { padding: 14px 16px 0; }
    .vc-card__footer { padding: 8px 8px 10px 16px; }
    .vc-card__time { font-size: 12px; }
}

/* Живая лента: плашка «Новая запись +1 · Открыть» */
.vc-digest-new {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 11px 20px;
    border: 0;
    border-bottom: 1px solid #e3eefb;
    background: #eef5fe;
    color: #2d81e0;
    font: 500 14px/1.3 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
    animation: vcNewIn .25s ease both;
    transition: background-color .15s ease;
}
.vc-digest-new[hidden] { display: none; }
.vc-digest-new:hover { background: #e3eefc; }
.vc-digest-new__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #f23104;
    box-shadow: 0 0 0 0 rgba(242, 49, 4, .5);
    animation: vcPulse 1.6s ease-out infinite;
    flex-shrink: 0;
}
.vc-digest-new__count {
    background: #2d81e0;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
}
.vc-digest-new__open { margin-left: auto; font-weight: 600; }
.vc-digest-item { transition: background-color 1s ease; }
.vc-digest-item.is-fresh { background: #fff8e6 !important; }
.post-card.vc-card--new { animation: fadeUp .35s ease both; }
.post-card.vc-card--new.is-fresh { box-shadow: 0 0 0 2px #ffd88a, 0 4px 16px rgba(0,0,0,.08) !important; }

@keyframes vcNewIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes vcPulse {
    0%   { box-shadow: 0 0 0 0 rgba(242, 49, 4, .5); }
    70%  { box-shadow: 0 0 0 7px rgba(242, 49, 4, 0); }
    100% { box-shadow: 0 0 0 0 rgba(242, 49, 4, 0); }
}
@media (max-width: 768px) {
    .vc-digest-new { padding: 11px 16px; }
}

/* ==========================================================
   v14 — ШАПКА СТАТЬИ КАК VC.RU
   ========================================================== */

.vc-entry-head {
    padding: 22px 24px 4px;
    font-family: 'Inter', sans-serif;
}
.vc-entry-head--wide { padding-top: 16px; }

/* Хлебные крошки — компактно, в одну строку, без последнего пункта */
.vc-entry-crumbs { margin: 0 0 14px; min-width: 0; }
.vc-entry-crumbs .breadcrumb,
.single #primary .vc-entry-crumbs .breadcrumb {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #9e9fa3 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vc-entry-crumbs .breadcrumb a { color: #6b6c70 !important; text-decoration: none !important; }
.vc-entry-crumbs .breadcrumb a:hover { color: #2d81e0 !important; }
.vc-entry-crumbs .breadcrumb_last { color: #b5b6ba !important; }

/* Рубрика + время */
.vc-entry-head__top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 12px;
}
.vc-entry-rubric {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1c1c1c !important;
    text-decoration: none !important;
    transition: color .15s ease;
}
.vc-entry-rubric:hover { color: #2d81e0 !important; }
.vc-entry-rubric__icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; line-height: 1;
}
.vc-entry-head__time {
    font-size: 14px;
    color: #9e9fa3;
    font-variant-numeric: tabular-nums;
}

/* Заголовок */
.single #primary .vc-entry-head .vc-entry-title,
.vc-entry-head h1.entry-title {
    margin: 0 0 12px !important;
    padding: 0 !important;
    font-size: 30px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
    color: #1c1c1c !important;
    font-family: 'Inter', sans-serif !important;
}

/* Лид */
.single #primary .vc-entry-head .vc-entry-lead,
.vc-entry-head .entry-excerpt.vc-entry-lead {
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    font-size: 18px !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    color: #3c3c3e !important;
    font-family: 'Inter', sans-serif !important;
}
.vc-entry-head .entry-excerpt.vc-entry-lead:before,
.vc-entry-head .entry-excerpt.vc-entry-lead:after { display: none !important; }

/* Статистика */
.vc-entry-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 12px 0 14px;
    border-top: 1px solid #f0f2f5;
    font-size: 14px;
    color: #9e9fa3;
}
.vc-entry-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9e9fa3 !important;
    text-decoration: none !important;
    font-variant-numeric: tabular-nums;
}
.vc-entry-stat:before { display: none !important; }
.vc-entry-stat svg { flex-shrink: 0; display: block; }
.vc-entry-stat--link:hover { color: #2d81e0 !important; }

/* Обложка */
.vc-entry-cover { margin: 4px 0 8px; padding: 0 24px; }
.vc-entry-cover img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.vc-entry-cover__caption {
    margin-top: 8px;
    font-size: 13px;
    color: #9e9fa3;
    text-align: center;
}

/* Плавающая кнопка «↑ Новые записи +N» */
.vc-live-pill {
    position: fixed;
    top: calc(var(--mos77-head-h, 56px) + var(--mos77-head-top, 0px) + 12px);
    left: 50%;
    z-index: 999;
    transform: translate(-50%, -16px);
    opacity: 0;
    pointer-events: none;
    padding: 9px 16px;
    border: 0;
    border-radius: 20px;
    background: #2d81e0;
    color: #fff;
    font: 600 14px/1 'Inter', sans-serif;
    box-shadow: 0 6px 20px rgba(45, 129, 224, .35);
    cursor: pointer;
    transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
}
.vc-live-pill.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.vc-live-pill:hover { background: #1a6cc9; }

@media (max-width: 768px) {
    .vc-entry-head { padding: 16px 16px 2px; }
    .single #primary .vc-entry-head .vc-entry-title,
    .vc-entry-head h1.entry-title { font-size: 24px !important; }
    .single #primary .vc-entry-head .vc-entry-lead,
    .vc-entry-head .entry-excerpt.vc-entry-lead { font-size: 16px !important; }
    .vc-entry-cover { padding: 0 16px; }
    .vc-entry-stats { gap: 4px 14px; font-size: 13px; }
}

/* ==========================================================
   v15 — ВРЕМЯ В МОСКВЕ: часы в дата-баре и страница /vremya/
   ========================================================== */

/* Дата-бар: дата — ссылка на /vremya/, рядом живые часы */
a.vc-date-bar__date--link {
    cursor: pointer !important;
    color: #1c1c1c !important;
    text-decoration: none !important;
    gap: 10px;
    transition: color .15s ease;
}
a.vc-date-bar__date--link:hover { color: #2d81e0 !important; }
.vc-date-bar__clock {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 8px;
    background: #f2f3f5;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #1c1c1c;
    transition: background-color .15s ease;
}
a.vc-date-bar__date--link:hover .vc-date-bar__clock { background: #e6effc; color: #2d81e0; }
.vc-date-bar__clock-msk { font-size: 10px; font-weight: 700; letter-spacing: .5px; color: #9e9fa3; }

/* Главный блок с часами */
.vr-now {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 26px 24px 22px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 60%, #8b5cf6 100%);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    text-align: center;
}
.vr-now.is-night { background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #312e81 100%); }
.vr-now::after {
    content: "";
    position: absolute;
    right: -70px; top: -70px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}
.vr-now__label { font-size: 13px; font-weight: 600; letter-spacing: .4px; opacity: .85; }
.vr-now__clock {
    margin: 6px 0 4px;
    font-size: 84px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.vr-now__date { font-size: 17px; font-weight: 500; }
.vr-now__sync {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.14);
    font-size: 13px;
}
.vr-now__sync.is-done { background: rgba(255,255,255,.2); }
.vr-now__facts {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.18);
    text-align: left;
}
.vr-now__facts dt { font-size: 12px; opacity: .75; }
.vr-now__facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }

/* Календарь */
.vr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vr-stat {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f8fa;
}
.vr-stat__num { font-size: 24px; font-weight: 700; color: #1c1c1c; font-variant-numeric: tabular-nums; }
.vr-stat__label { font-size: 12px; color: #757a82; line-height: 1.3; }
.vr-progress { margin-top: 14px; height: 6px; border-radius: 3px; background: #eef0f3; overflow: hidden; }
.vr-progress span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2d81e0, #8b5cf6); }
.vr-progress__label { margin-top: 6px; font-size: 12px; color: #9e9fa3; }

/* Города */
.vr-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.vr-city {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 15px;
}
.vr-city__name { flex: 1; min-width: 0; color: #1c1c1c; }
.vr-city__diff { font-size: 12px; color: #9e9fa3; white-space: nowrap; }
.vr-city__time { min-width: 48px; text-align: right; font-weight: 700; color: #1c1c1c; font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
    .vr-now { border-radius: 0; padding: 22px 16px 18px; }
    .vr-now__clock { font-size: 60px; letter-spacing: -1px; }
    .vr-now__date { font-size: 15px; }
    .vr-now__facts { grid-template-columns: repeat(2, 1fr); }
    .vr-stats { grid-template-columns: repeat(2, 1fr); }
    .vr-cities { grid-template-columns: 1fr; }
    .vc-date-bar__clock { padding: 2px 7px; }
}

/* ==========================================================
   v16 — ТРИ КОЛОНКИ В ОДНУ ЛИНИЮ
   Родительская тема ставит #page { overflow: hidden } — из-за этого #page
   становился контейнером прокрутки: боковые колонки съезжали на 22px вниз
   и не «прилипали» при прокрутке. overflow: clip обрезает так же, но не ломает sticky.
   ========================================================== */
#page { overflow: clip !important; }

@media (min-width: 1025px) {
    #left-nav-sidebar {
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        scrollbar-width: none;
    }
    #left-nav-sidebar::-webkit-scrollbar { display: none; }
    .admin-bar #left-nav-sidebar,
    .admin-bar #right-comments-sidebar { max-height: calc(100vh - 128px); }
}

/* ==========================================================
   v17 — СТРАНИЦЫ ВРЕМЕНИ: /vremya/, /po-grinvichu/, /namaza/
   ========================================================== */
.vr-now__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}
.vr-now__actions .vr-now__sync { margin-top: 0; }
.vr-now__fs {
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 20px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.vr-now__fs:hover { background: rgba(255,255,255,.16); }

/* Полноэкранные часы */
#vr-clock:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding: 4vh 4vw;
}
#vr-clock:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 0;
    padding: 4vh 4vw;
}
#vr-clock:fullscreen .vr-now__clock { font-size: min(24vw, 46vh); letter-spacing: -.02em; margin: 2vh 0; }
#vr-clock:fullscreen .vr-now__label { font-size: max(16px, 2.4vh); }
#vr-clock:fullscreen .vr-now__date { font-size: max(18px, 3.6vh); }
#vr-clock:fullscreen .vr-now__sync,
#vr-clock:fullscreen .vr-now__facts { display: none; }
#vr-clock:-webkit-full-screen .vr-now__clock { font-size: min(24vw, 46vh); letter-spacing: -.02em; margin: 2vh 0; }
#vr-clock:-webkit-full-screen .vr-now__sync,
#vr-clock:-webkit-full-screen .vr-now__facts { display: none; }

/* Москва ↔ Гринвич */
.vr-pair {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.vr-pair__clock {
    margin: 4px 0 2px;
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.vr-pair__zone { font-size: 13px; opacity: .8; }
.vr-pair__diff {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.18);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

/* Конвертер UTC → МСК */
.vr-conv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vr-conv__row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f7f8fa;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.vr-conv__row.is-now { background: #e8f1fd; box-shadow: inset 0 0 0 1px #2d81e0; }
.vr-conv__utc { color: #757a82; }
.vr-conv__arrow { color: #b8bcc3; }
.vr-conv__msk { font-weight: 700; color: #1c1c1c; }
.vr-conv__msk small { font-weight: 500; font-size: 11px; color: #9e9fa3; }

/* Таблицы */
.vr-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.vr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}
.vr-table th {
    padding: 8px 10px;
    border-bottom: 1px solid #e6e8eb;
    font-size: 12px;
    font-weight: 600;
    color: #9e9fa3;
    text-align: left;
    white-space: nowrap;
}
.vr-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #f0f2f5;
    color: #1c1c1c;
    white-space: nowrap;
}
.vr-table tr.is-msk td { background: #f3f7fe; font-weight: 600; }
.vr-table__time { font-weight: 700; }
.vr-table__cities { white-space: normal !important; color: #757a82 !important; font-size: 13px; min-width: 180px; }
.vr-table--namaz td:first-child { color: #757a82; }
.vr-table--namaz tr.is-friday td { background: #f6fbf4; }
.vr-table--namaz tr.is-today td { background: #e8f1fd; font-weight: 700; color: #1c1c1c; }
.vr-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #9e9fa3; }

/* Намаз */
.vr-now--namaz { background: linear-gradient(135deg, #047857 0%, #0d9488 55%, #0e7490 100%); }
.vr-namaz-next {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 10px 0 18px;
}
.vr-namaz-next__label { font-size: 13px; opacity: .8; }
.vr-namaz-next__name { font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -1px; }
.vr-namaz-next__left {
    margin-top: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,.16);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.vr-namaz {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.vr-namaz__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 10px;
    background: rgba(255,255,255,.1);
    transition: background .2s, color .2s;
}
.vr-namaz__item.is-next { background: #fff; color: #047857; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.vr-namaz__name { font-size: 13px; font-weight: 600; opacity: .9; }
.vr-namaz__time { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vr-namaz__sub { font-size: 11px; opacity: .75; line-height: 1.25; }
.vr-now__clockline { position: relative; z-index: 1; margin-top: 16px; font-size: 14px; opacity: .9; }
.vr-now__clockline b { font-variant-numeric: tabular-nums; }

@media (max-width: 768px) {
    .vr-pair { grid-template-columns: 1fr 1fr; }
    .vr-pair__diff { display: none; }
    .vr-pair__clock { font-size: 36px; letter-spacing: -.5px; }
    .vr-conv { grid-template-columns: repeat(2, 1fr); }
    .vr-conv__row { font-size: 13px; padding: 7px 8px; }
    .vr-namaz { grid-template-columns: repeat(3, 1fr); }
    .vr-namaz-next__name { font-size: 34px; }
    .vr-namaz__time { font-size: 20px; }
    .vr-table { font-size: 13px; }
    .vr-table th, .vr-table td { padding: 8px 6px; }
    .vr-table--namaz { font-size: 12.5px; }
    .vr-table--namaz th, .vr-table--namaz td { padding: 8px 4px; }
}

/* ==========================================================
   v18 — ДАТА-БАР НА ТЕЛЕФОНЕ В ОДИН РЯД
   ========================================================== */
.vc-date-bar__wd-s { display: none; }
@media (max-width: 768px) {
    .vc-date-bar { flex-wrap: nowrap; gap: 8px; padding: 10px 12px 10px 16px; }
    .vc-date-bar__wd { display: none; }
    .vc-date-bar__wd-s { display: inline; }
    a.vc-date-bar__date--link { gap: 8px; min-width: 0; }
    .vc-date-bar__clock { padding: 3px 7px; }
    .vc-weather-chip { flex-shrink: 0; gap: 6px; padding: 5px 10px 5px 7px; }
    .vc-weather-chip__icon { font-size: 16px; }
}
@media (min-width: 375px) and (max-width: 400px) {
    .vc-weather-chip__range { display: inline; font-size: 12px; }
}
@media (max-width: 360px) {
    .vc-date-bar, .vc-date-bar__date { font-size: 14px; }
    .vc-date-bar__clock-msk { display: none; }
}

/* ==========================================================
   v19 — НАВИГАЦИОННЫЕ ЦЕПОЧКИ (BreadcrumbList для Яндекса)
   ========================================================== */
.mos77-crumbs { min-width: 0; font-family: 'Inter', sans-serif; }
.mos77-crumbs ol {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: 13px;
    line-height: 1.4;
    color: #9e9fa3;
    white-space: nowrap;
    overflow: hidden;
}
.mos77-crumbs ol::before,
.mos77-crumbs ol::after { content: none !important; display: none !important; }
.mos77-crumbs li { margin: 0 !important; padding: 0 !important; min-width: 0; list-style: none !important; }
.mos77-crumbs li::marker { content: none; }
.mos77-crumbs li + li::before { content: "›"; margin: 0 7px; color: #c8cdd5; }
.mos77-crumbs li:last-child { overflow: hidden; text-overflow: ellipsis; }
.mos77-crumbs a { color: #6b6c70 !important; text-decoration: none !important; }
.mos77-crumbs a:hover { color: #2d81e0 !important; }
.mos77-crumbs [aria-current] { color: #9e9fa3; }

.vc-entry-crumbs.mos77-crumbs { margin: 0 0 12px; }
.rb-crumbs.mos77-crumbs { margin: 0 0 10px; padding: 0 4px; }

@media (max-width: 768px) {
    .rb-crumbs.mos77-crumbs { padding: 0 16px; }
}

/* ==========================================================
   v20 — рубрика в карточке ленты: как в левом сайдбаре, кликабельная
   ========================================================== */
.vc-card__rubric {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    padding: 0 20px 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 22px;
    color: #6b6e74;
}
.vc-card__cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #1c1c1c !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: color .15s ease;
}
.vc-card__cat:hover { color: #2d81e0 !important; }
.vc-card__cat .vc-nav-icon { transition: transform .15s ease; }
.vc-card__cat:hover .vc-nav-icon { transform: scale(1.08); }
.vc-card__rubric-sep { color: #c8cdd5; }
.vc-card__rubric-extra { color: #6b6e74; }

@media (max-width: 768px) {
    .vc-card__rubric { padding: 0 16px 10px; font-size: 14px; }
}

/* ==========================================================
   v23 — лента в 2 столбца (главная и рубрики)
   Колонки считаются от ширины ленты: ≥ 2×290px — два столбца,
   уже — один (телефоны, узкие окна с двумя сайдбарами).
   ========================================================== */
#main .post-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 12px !important;
    align-items: stretch;
}
#main .post-cards > .post-card {
    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    min-width: 0;
}
#main .post-cards > .post-card > * { flex: none !important; }
#main .post-cards > .post-card .vc-card__footer { margin-top: auto; }

@media (min-width: 600px) {
    #main .post-cards > .post-card .post-card__thumbnail img {
        height: auto !important;
        aspect-ratio: 16 / 9;
    }
    #main .post-cards > .post-card .post-card__title a,
    #main .post-cards > .post-card .post-card__title span a {
        font-size: 17px !important;
        line-height: 1.32 !important;
        padding: 14px 16px 8px !important;
    }
    #main .post-cards > .post-card.post-card--thumbnail-no .post-card__title a,
    #main .post-cards > .post-card.post-card--thumbnail-no .post-card__title span a { padding-top: 16px !important; }
    #main .post-cards > .post-card .vc-card__rubric { padding: 0 16px 8px; font-size: 13px; }
    #main .post-cards > .post-card .post-card__description {
        padding: 0 16px !important;
        margin: 0 0 4px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
    #main .post-cards > .post-card.post-card--thumbnail-no .post-card__description { -webkit-line-clamp: 7; }
    #main .post-cards > .post-card .vc-card__footer { padding: 8px 8px 10px 16px; }

    /* нечётная последняя карточка — на всю ширину, фото пониже */
    #main .post-cards > .post-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    #main .post-cards > .post-card:last-child:nth-child(odd) .post-card__thumbnail img {
        aspect-ratio: auto;
        height: 260px !important;
    }
}

/* v23 — заглушка вместо фото у записей без картинки: только в узких карточках сетки 2×
   (в одну колонку не показываем) */
.vc-card__ph { display: none; }
#main .post-cards > .post-card { container-type: inline-size; }
@container (max-width: 440px) {
    .vc-card__ph { display: block; }
    .vc-card__ph a {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 16 / 9;
        background: #f2f3f5;
        background: linear-gradient(135deg, color-mix(in srgb, var(--ph) 14%, #fff) 0%, color-mix(in srgb, var(--ph) 32%, #fff) 100%);
        text-decoration: none !important;
        overflow: hidden;
    }
    .vc-card__ph-icon {
        font-size: 64px;
        line-height: 1;
        filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .12));
        transition: transform .3s ease;
    }
    .post-card:hover .vc-card__ph-icon { transform: scale(1.06); }
    #main .post-cards > .post-card.post-card--thumbnail-no .post-card__title a,
    #main .post-cards > .post-card.post-card--thumbnail-no .post-card__title span a { padding-top: 14px !important; }
    #main .post-cards > .post-card.post-card--thumbnail-no .post-card__description { -webkit-line-clamp: 3; }
}

/* ==========================================================
   v24 — телефон: лента тоже в 2 столбца, компактные плитки
   ========================================================== */
@media (max-width: 599px) {
    #main .post-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        padding: 0 8px;
    }
    #main .post-cards > .post-card { border-radius: 12px !important; }
    #main .post-cards > .post-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Узкая плитка (≤ 260px — телефон в 2 столбца) */
@container (max-width: 260px) {
    #main .post-cards > .post-card .post-card__thumbnail img,
    #main .post-cards > .post-card .vc-card__ph a {
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
    }
    #main .post-cards > .post-card .vc-card__ph-icon { font-size: 44px; }

    #main .post-cards > .post-card .post-card__title a,
    #main .post-cards > .post-card .post-card__title span a,
    #main .post-cards > .post-card.post-card--thumbnail-no .post-card__title a,
    #main .post-cards > .post-card.post-card--thumbnail-no .post-card__title span a {
        display: -webkit-box !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
        font-size: 14px !important;
        line-height: 1.3 !important;
        letter-spacing: -.1px;
        padding: 0 !important;
    }
    #main .post-cards > .post-card .post-card__title { padding: 10px 10px 6px !important; }

    #main .post-cards > .post-card .vc-card__rubric {
        flex-wrap: nowrap;
        padding: 0 10px 8px;
        font-size: 12px;
        line-height: 18px;
        min-width: 0;
    }
    #main .post-cards > .post-card .vc-card__cat { gap: 6px; min-width: 0; }
    #main .post-cards > .post-card .vc-card__cat .vc-nav-icon { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; }
    #main .post-cards > .post-card .vc-card__cat-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #main .post-cards > .post-card .vc-card__rubric-sep,
    #main .post-cards > .post-card .vc-card__rubric-extra { display: none; }

    #main .post-cards > .post-card .post-card__description { display: none !important; }

    #main .post-cards > .post-card .vc-card__footer { padding: 4px 4px 8px 10px; gap: 4px; }
    #main .post-cards > .post-card .vc-card__time { font-size: 11px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
    #main .post-cards > .post-card .vc-card__btn--comments { display: none; }
    #main .post-cards > .post-card .vc-card__views { height: 26px; padding: 0 6px 0 4px; gap: 4px; font-size: 12px; }
    #main .post-cards > .post-card .vc-card__views svg { width: 15px; height: 15px; }
}

/* v24 — у фото в карточках сетки нет нижнего отступа темы */
#main .post-cards > .post-card .post-card__thumbnail { margin: 0 !important; }

/* =========================================================================
   Блок «Поделиться с друзьями» (Social Share)
   ========================================================================= */

.entry-social {
    margin: 32px 0 20px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    clear: both;
}

.entry-social__card {
    background: #f7f9fc;
    border: 1px solid #eef1f6;
    border-radius: 16px;
    padding: 20px 22px 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: box-shadow .2s ease, border-color .2s ease;
}

.entry-social__card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    border-color: #e2e8f0;
}

.entry-social__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.entry-social__title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}

.entry-social__title-icon {
    color: #2563eb;
    flex-shrink: 0;
}

.entry-social__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.entry-social__hint {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

.entry-social .social-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Скрываем старые :before и счетчики темы */
.entry-social .social-button:before {
    display: none !important;
    content: none !important;
}
.entry-social .social-button span[data-counter] {
    display: none !important;
}

/* Кнопка Поделиться */
.entry-social .social-button {
    flex: 1 1 auto !important;
    min-width: max-content !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    outline: none !important;
    border: 1px solid transparent !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.entry-social .social-button__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.entry-social .social-button:hover .social-button__ico {
    transform: scale(1.12);
}

.entry-social .social-button__label {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-weight: 600;
}

/* 1. ВКонтакте */
.entry-social .social-button--vkontakte {
    color: #0077ff !important;
    border-color: rgba(0, 119, 255, 0.2) !important;
    background: #ffffff !important;
}
.entry-social .social-button--vkontakte:hover {
    background: #0077ff !important;
    color: #ffffff !important;
    border-color: #0077ff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 119, 255, 0.32) !important;
}

/* 2. Telegram */
.entry-social .social-button--telegram {
    color: #229ed9 !important;
    border-color: rgba(34, 158, 217, 0.24) !important;
    background: #ffffff !important;
}
.entry-social .social-button--telegram:hover {
    background: #229ed9 !important;
    color: #ffffff !important;
    border-color: #229ed9 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.32) !important;
}

/* 3. WhatsApp */
.entry-social .social-button--whatsapp {
    color: #25d366 !important;
    border-color: rgba(37, 211, 102, 0.26) !important;
    background: #ffffff !important;
}
.entry-social .social-button--whatsapp:hover {
    background: #25d366 !important;
    color: #ffffff !important;
    border-color: #25d366 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32) !important;
}

/* 4. Одноклассники */
.entry-social .social-button--odnoklassniki {
    color: #ee8208 !important;
    border-color: rgba(238, 130, 8, 0.24) !important;
    background: #ffffff !important;
}
.entry-social .social-button--odnoklassniki:hover {
    background: #ee8208 !important;
    color: #ffffff !important;
    border-color: #ee8208 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(238, 130, 8, 0.32) !important;
}

/* 5. Скопировать ссылку */
.entry-social .social-button--copy {
    color: #475569 !important;
    border-color: rgba(71, 85, 105, 0.2) !important;
    background: #ffffff !important;
}
.entry-social .social-button--copy:hover {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: #1e293b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 41, 59, 0.22) !important;
}

.entry-social .social-button--copy.is-copied {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

/* 6. SMS (если выводится) */
.entry-social .social-button--sms {
    color: #059669 !important;
    border-color: rgba(5, 150, 105, 0.22) !important;
    background: #ffffff !important;
}
.entry-social .social-button--sms:hover {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.32) !important;
}

/* Active click state */
.entry-social .social-button:active {
    transform: scale(0.97) !important;
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
    .entry-social__card {
        padding: 16px 14px 16px;
        border-radius: 14px;
    }
    .entry-social__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 12px;
    }
    .entry-social__hint {
        font-size: 12px;
    }
    .entry-social .social-buttons {
        gap: 8px !important;
    }
    .entry-social .social-button {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: max-content !important;
        height: 42px !important;
        font-size: 13px !important;
        padding: 0 12px !important;
        gap: 6px !important;
    }
    .entry-social .social-button__label {
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    /* Кнопка «Скопировать» на всю ширину на мобильных для акцента */
    .entry-social .social-button--copy {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
}

/* ==========================================================================
   ФОТОГАЛЕРЕЯ В ЗАПИСЯХ (СОВРЕМЕННЫЙ ДИЗАЙН И СЕТКА)
   ========================================================================== */

/* Заголовок раздела «Фотографии» */
.entry-content h2[id^="fotografii"],
.entry-content h2:has(+ .gallery),
.entry-content h2:has(+ * > .gallery) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6;
}

.entry-content h2[id^="fotografii"]::before,
.entry-content h2:has(+ .gallery)::before {
    content: "";
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: #eff6ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4' ry='4'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") no-repeat center center;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.gallery-count-badge {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

/* Сетка галереи */
.entry-content .gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    margin: 20px 0 36px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.entry-content .gallery::before,
.entry-content .gallery::after {
    display: none !important;
}

/* Колонки при явном указании в шорткоде */
.entry-content .gallery.gallery-columns-1 { grid-template-columns: 1fr !important; }
.entry-content .gallery.gallery-columns-2 { grid-template-columns: repeat(2, 1fr) !important; }
.entry-content .gallery.gallery-columns-4 { grid-template-columns: repeat(4, 1fr) !important; }

/* Карточка фотографии */
.entry-content .gallery .gallery-item {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.entry-content .gallery .gallery-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.15), 0 4px 10px rgba(15, 23, 42, 0.06) !important;
    border-color: #cbd5e1 !important;
}

/* Обертка картинки */
.entry-content .gallery .gallery-icon {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.entry-content .gallery .gallery-icon a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    cursor: pointer !important;
    outline: none !important;
}

/* Картинка */
.entry-content .gallery .gallery-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s ease !important;
}

.entry-content .gallery .gallery-item:hover .gallery-icon img {
    transform: scale(1.06) !important;
    filter: brightness(0.95) !important;
}

/* Полупрозрачное затемнение при наведении */
.entry-content .gallery .gallery-icon a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.32) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Иконка лупы на карточке */
.entry-content .gallery .gallery-icon a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E") no-repeat center center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.entry-content .gallery .gallery-item:hover .gallery-icon a::after {
    opacity: 1;
}

.entry-content .gallery .gallery-item:hover .gallery-icon a::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Подпись к фото */
.entry-content .gallery .gallery-caption {
    display: block !important;
    padding: 10px 14px 12px !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #475569 !important;
    font-weight: 500 !important;
    text-align: center !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
}

/* Адаптивность сетки */
@media (max-width: 820px) {
    .entry-content .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 560px) {
    .entry-content .gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin: 16px 0 28px 0 !important;
    }
    .entry-content .gallery .gallery-item {
        border-radius: 12px !important;
    }
    .entry-content .gallery .gallery-icon a::before {
        width: 38px;
        height: 38px;
        background-size: 16px;
    }
    .entry-content h2[id^="fotografii"],
    .entry-content h2:has(+ .gallery) {
        font-size: 19px;
        margin-top: 30px;
    }
}

@media (max-width: 360px) {
    .entry-content .gallery {
        grid-template-columns: 1fr !important;
    }
}

/* Полноэкранный просмотрщик галереи (Lightbox) */
.m77-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    background: rgba(10, 15, 29, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    user-select: none;
    -webkit-user-select: none;
}

.m77-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* Верхняя панель */
.m77-lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    z-index: 10;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.m77-lightbox__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m77-lightbox__title {
    font-size: 16px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: -0.01em;
    max-width: 450px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m77-lightbox__counter {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.m77-lightbox__tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m77-lightbox__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    padding: 0;
}

.m77-lightbox__btn:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: scale(1.06);
}

.m77-lightbox__btn:active {
    transform: scale(0.94);
}

/* Основная область с фото и стрелками */
.m77-lightbox__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 80px 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.m77-lightbox__image-wrap {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.m77-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    transform: scale(1);
}

.m77-lightbox__img.is-loading {
    opacity: 0.3;
    transform: scale(0.98);
}

/* Стрелки навигации */
.m77-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    padding: 0;
}

.m77-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.08);
}

.m77-lightbox__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.m77-lightbox__nav--prev { left: 24px; }
.m77-lightbox__nav--next { right: 24px; }

/* Нижняя панель с подписью */
.m77-lightbox__footer {
    padding: 12px 24px 20px;
    text-align: center;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    min-height: 24px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

.m77-lightbox__caption {
    max-width: 700px;
    margin: 0 auto;
    color: #cbd5e1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Мобильная адаптация лайтбокса */
@media (max-width: 768px) {
    .m77-lightbox__main {
        padding: 10px 16px 20px;
    }
    .m77-lightbox__img {
        max-height: calc(100vh - 140px);
        border-radius: 8px;
    }
    .m77-lightbox__nav {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.4);
    }
    .m77-lightbox__nav--prev { left: 10px; }
    .m77-lightbox__nav--next { right: 10px; }
    .m77-lightbox__title {
        max-width: 200px;
        font-size: 14px;
    }
}

/* ==========================================================================
   КНОПКА «ДОБАВИТЬ» И МОДАЛЬНОЕ ОКНО (БЕСПЛАТНО / ПЛАТНО)
   ========================================================================== */

/* Кнопка «Добавить» в шапке */
.lk-head {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.lk-head__write {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    font: 600 14px/1 'Inter', sans-serif;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
}
.lk-head__write:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.36);
}
.lk-head__write:active {
    transform: translateY(0);
}
.lk-head__write svg {
    flex-shrink: 0;
}

/* Модальное окно «Что вы хотите добавить?» */
.lk-add-modal {
    position: fixed;
    inset: 0;
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lk-add-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.lk-add-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lk-add-modal__dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 980px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 36px 36px 28px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}
.lk-add-modal.is-open .lk-add-modal__dialog {
    transform: scale(1) translateY(0);
}
.lk-add-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    padding: 0;
}
.lk-add-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.06);
}
.lk-add-modal__head {
    text-align: center;
    margin-bottom: 28px;
}
.lk-add-modal__tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2563eb;
    background: #eff6ff;
    margin-bottom: 10px;
}
.lk-add-modal__title {
    font: 800 28px/1.2 'Inter', sans-serif !important;
    color: #0f172a;
    margin: 0 0 8px !important;
}
.lk-add-modal__subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

/* Сетка карточек в модалке */
.lk-add-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.lk-add-card {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}
.lk-add-card:hover {
    transform: translateY(-4px);
}
.lk-add-card--free {
    border-color: #d1fae5;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 40%);
}
.lk-add-card--free:hover {
    border-color: #10b981;
    box-shadow: 0 16px 32px -8px rgba(16, 185, 129, 0.18);
}
.lk-add-card--paid {
    border-color: #e0e7ff;
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 40%);
}
.lk-add-card--paid:hover {
    border-color: #6366f1;
    box-shadow: 0 16px 32px -8px rgba(99, 102, 241, 0.2);
}

.lk-add-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.lk-add-card__icon {
    font-size: 32px;
    line-height: 1;
}
.lk-add-card__badge {
    padding: 4px 10px;
    border-radius: 8px;
    font: 700 11px/1.3 'Inter', sans-serif;
    letter-spacing: 0.03em;
}
.lk-add-card__badge--free {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.lk-add-card__badge--paid {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}
.lk-add-card__title {
    font: 700 20px/1.25 'Inter', sans-serif !important;
    color: #0f172a;
    margin: 0 0 8px !important;
}
.lk-add-card__desc {
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    margin: 0 0 16px;
    flex-grow: 1;
}

/* Блок правил и преимуществ внутри карточки */
.lk-add-card__rules {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.45;
}
.lk-add-card__rules--paid {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.lk-add-card__rule-head {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.lk-add-card__rules--paid .lk-add-card__rule-head {
    color: #1e293b;
}
.lk-add-card__rule-list {
    margin: 0;
    padding-left: 18px;
    color: #78350f;
}
.lk-add-card__rules--paid .lk-add-card__rule-list {
    color: #475569;
}
.lk-add-card__rule-list li {
    margin-bottom: 4px;
}
.lk-add-card__rule-list li:last-child {
    margin-bottom: 0;
}
.lk-rule-alert {
    color: #b91c1c;
}

/* Кнопки действий карточек */
.lk-add-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border-radius: 12px;
    font: 600 15px/1 'Inter', sans-serif;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-top: auto;
}
.lk-add-card__btn--free {
    background: #10b981;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.lk-add-card__btn--free:hover {
    background: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
.lk-add-card__btn--paid {
    background: #4f46e5;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.lk-add-card__btn--paid:hover {
    background: #4338ca;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.lk-add-modal__foot {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}
.lk-add-modal__foot a {
    color: #2563eb !important;
    font-weight: 600;
    margin-left: 6px;
    text-decoration: none !important;
}
.lk-add-modal__foot a:hover {
    text-decoration: underline !important;
}

@media (max-width: 680px) {
    .lk-add-modal__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .lk-add-modal__dialog {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }
    .lk-add-modal__title {
        font-size: 22px !important;
    }
    .lk-add-card {
        padding: 20px 18px;
    }
}

/* Сетка на 3 колонки для статьи, анонса и заведения */
.lk-add-modal__grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 920px) {
    .lk-add-modal__grid--3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Переключатель города в модалке */
.lk-add-city-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    padding: 6px;
    border-radius: 16px;
    margin: 16px auto 0;
    border: 1px solid #e2e8f0;
    max-width: 860px;
}
.lk-add-city-pill {
    appearance: none;
    border: 1px solid transparent;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font: 600 13px/1.3 'Inter', -apple-system, sans-serif;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.lk-add-city-pill__ico {
    font-size: 14px;
    line-height: 1;
}
.lk-add-city-pill:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(15, 23, 42, 0.08);
}
.lk-add-city-pill.is-active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}
.lk-add-city-pill.is-active:hover {
    color: #ffffff;
    background: #1d4ed8;
}
@media (max-width: 768px) {
    .lk-add-city-pills {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 999px;
        padding: 5px 6px;
        max-width: 100%;
    }
    .lk-add-city-pills::-webkit-scrollbar {
        display: none;
    }
    .lk-add-city-pill {
        flex-shrink: 0;
        padding: 6px 11px;
        font-size: 12.5px;
    }
}

/* Карточка мероприятия */
.lk-add-card--event {
    border-color: #fed7aa;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 40%);
}
.lk-add-card--event:hover {
    border-color: #f97316;
    box-shadow: 0 16px 32px -8px rgba(249, 115, 22, 0.2);
}
.lk-add-card__badge--event {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}
.lk-add-card__rules--event {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}
.lk-add-card__rules--event .lk-add-card__rule-head {
    color: #9a3412;
}
.lk-add-card__rules--event .lk-add-card__rule-list {
    color: #7c2d12;
}
.lk-add-card__btn--event {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
}
.lk-add-card__btn--event:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

/* Радиокнопки выбора города в формах */
.lk-city-radio-group {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.lk-city-radio {
    cursor: pointer;
    margin: 0;
    position: relative;
    user-select: none;
}
.lk-city-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.lk-city-radio__box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    font: 600 13px/1.3 'Inter', -apple-system, sans-serif;
    color: #334155;
    transition: all 0.18s ease;
}
.lk-city-radio:hover .lk-city-radio__box {
    border-color: #94a3b8;
    background: #ffffff;
}
.lk-city-radio input:checked + .lk-city-radio__box {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.lk-field__hint {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ==========================================================================
   ИНФОРМАЦИОННЫЕ ПЛАШКИ ПРАВИЛ В ФОРМАХ
   ========================================================================== */

.lk-rule-banner {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
}
.lk-rule-banner--free {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}
.lk-rule-banner--paid {
    background: #f5f3ff;
    border: 1.5px solid #ddd6fe;
}
.lk-rule-banner__icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.lk-rule-banner__body {
    flex: 1;
}
.lk-rule-banner__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.lk-rule-banner__heading {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.lk-rule-banner__pill {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.lk-rule-banner__pill--free {
    background: #dcfce7;
    color: #15803d;
}
.lk-rule-banner__pill--paid {
    background: #ede9fe;
    color: #6d28d9;
}
.lk-rule-banner__text {
    color: #334155;
    margin: 0 0 10px;
}
.lk-rule-banner__warn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 10px 14px;
    color: #92400e;
    font-size: 13px;
    margin-bottom: 10px;
}
.lk-rule-banner__warn strong {
    color: #b91c1c;
}
.lk-rule-banner__foot {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.lk-rule-banner__foot a {
    color: #2563eb !important;
    font-weight: 600;
    text-decoration: none !important;
}
.lk-rule-banner__foot a:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   СТРАНИЦА РЕГИСТРАЦИИ: 2 КОЛОНКИ И ЧТО ДАЕТ РЕГИСТРАЦИЯ
   ========================================================================== */

.lk-auth {
    display: flex;
    justify-content: center;
    padding: 30px 16px 50px;
    width: 100%;
    box-sizing: border-box;
}

.lk-auth__wrap {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.lk-auth__card--single {
    margin: 0 auto;
    max-width: 440px;
}

/* Левая колонка: Что даёт регистрация */
.lk-auth__perks {
    display: flex;
    flex-direction: column;
}

.lk-perks__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    align-self: flex-start;
    border: 1px solid #dbeafe;
}

.lk-perks__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.lk-perks__title {
    font: 800 32px/1.2 'Inter', sans-serif !important;
    color: #0f172a;
    margin: 0 0 10px !important;
    letter-spacing: -0.02em;
}

.lk-perks__subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: #64748b;
    margin: 0 0 28px;
}

.lk-perks__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.lk-perk-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lk-perk-item:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
}

.lk-perk-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
    flex-shrink: 0;
}

.lk-perk-item__icon--blue {
    background: #eff6ff;
}
.lk-perk-item__icon--amber {
    background: #fffbeb;
}
.lk-perk-item__icon--green {
    background: #f0fdf4;
}
.lk-perk-item__icon--purple {
    background: #f5f3ff;
}

.lk-perk-item__content {
    flex: 1;
}

.lk-perk-item__title {
    font: 700 15px/1.3 'Inter', sans-serif !important;
    color: #0f172a;
    margin: 0 0 4px !important;
}

.lk-perk-item__desc {
    font-size: 13.5px;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
}

/* Статистика доверия */
.lk-perks__stats {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 20px;
    gap: 16px;
}

.lk-perks__stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lk-perks__stat-num {
    font: 800 20px/1.2 'Inter', sans-serif;
    color: #0f172a;
}

.lk-perks__stat-txt {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.lk-perks__stat-sep {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
}

@media (max-width: 900px) {
    .lk-auth__wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .lk-auth__card {
        max-width: 100%;
    }
    .lk-perks__title {
        font-size: 26px !important;
    }
}

/* Скрытие плашки выбора города на мобильных телефонах */
@media (max-width: 768px) {
    .vc-home-city-bar {
        display: none !important;
    }
}




