/* ============================================
   ГЛОБАЛЬНЫЕ СБРОСЫ
   ============================================ */

.entry-header,
header.entry-header,
article .entry-header {
    display: none !important;
}

.site-main,
#primary,
.content-area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.contacts-section {
    padding-top: 1em !important;
}


/* ============================================
   НАВИГАЦИЯ – с выпадающим подменю
   ============================================ */

#site-navigation,
.main-navigation,
#top-menu,
.menu,
.menu-item,
.menu &gt; li &gt; a,
.menu-toggle {
    all: unset;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.main-navigation {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
    text-align: center !important;
}

#top-menu,
.menu {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 5px !important;
}

.menu-item {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.menu &gt; li &gt; a {
    display: inline-block !important;
    padding: 12px 20px !important;
    margin: 5px !important;
    background: white !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border: 2px solid #ff6f00 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.menu &gt; li &gt; div &gt; a {
    display: inline-block !important;
    padding: 12px 20px !important;
    margin: 5px !important;
    background: white !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border: 2px solid #ff6f00 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.menu &gt; li &gt; div &gt; a:hover {
    background: #ff6f00 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3) !important;
}

.current-menu-ancestor &gt; div &gt; a {
    background: #ff6f00 !important;
    color: white !important;
    font-weight: 600 !important;
}

.menu &gt; li &gt; a:hover {
    background: #ff6f00 !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3) !important;
}

.current-menu-item &gt; a,
.current_page_item &gt; a,
.current-menu-ancestor &gt; a {
    background: #ff6f00 !important;
    color: white !important;
    font-weight: 600 !important;
}

.menu-item-has-children &gt; a:after,
.menu-item-has-children &gt; a:before {
    display: none !important;
}


/* ============================================
   ДЕСКТОП (от 768px)
   ============================================ */

@media (min-width: 768px) {

    .main-navigation .menu-toggle,
    .main-navigation button.menu-toggle {
        display: none !important;
        visibility: hidden !important;
    }

    .navigation-top {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .navigation-top .wrap {
        width: 100% !important;
        max-width: 1200px !important;
        display: flex !important;
        justify-content: center !important;
    }

    .menu-item {
        overflow: visible !important;
    }

    .menu &gt; li.menu-item-has-children &gt; a::after {
        content: ' ▾' !important;
        display: inline !important;
        font-size: 12px !important;
        opacity: 0.7 !important;
    }

    .menu-item-has-children &gt; .sub-menu {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 5px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 200px !important;
        background: white !important;
        border: none !important;
        border-radius: 10px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
        padding: 8px 0 !important;
        list-style: none !important;
        margin: 0 !important;
        z-index: 9999 !important;
        flex-direction: column !important;
    }

    .menu-item-has-children:hover &gt; .sub-menu,
    .menu-item-has-children:focus-within &gt; .sub-menu {
        display: flex !important;
    }

    .menu-item-has-children::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        height: 10px !important;
    }

    .sub-menu .menu-item {
        display: block !important;
        width: 100% !important;
    }

    .sub-menu .menu-item a {
        display: block !important;
        padding: 10px 20px !important;
        margin: 0 !important;
        background: white !important;
        color: #333 !important;
        text-decoration: none !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border: none !important;
        border-radius: 0 !important;
        border-bottom: 1px solid #f5e8d8 !important;
        min-width: unset !important;
        white-space: nowrap !important;
        text-align: left !important;
        transition: all 0.2s ease !important;
    }

    .sub-menu .menu-item:last-child a {
        border-bottom: none !important;
    }

    .sub-menu .menu-item a:hover {
        background: #fff3e0 !important;
        color: #ff6f00 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .sub-menu .current-menu-item a,
    .sub-menu .current_page_item a {
        background: #ff6f00 !important;
        color: white !important;
    }
}


/* ============================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 767px)
   ============================================ */

.main-navigation button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {

    #top-menu,
    .main-navigation:not(.toggled) .menu {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: fit-content !important;
        max-width: none !important;
        margin: 8px auto !important;
        padding: 9px 20px !important;
        background: #ff6f00 !important;
        color: white !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        position: relative !important;
    }

    .menu-toggle .icon {
        fill: white !important;
        width: 18px !important;
        height: 18px !important;
    }

    .toggled-on #top-menu,
    .toggled #top-menu,
    .toggled-on .menu,
    .toggled .menu {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 70px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90% !important;
        max-width: 350px !important;
        background: white !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 12px !important;
        padding: 10px 6px !important;
        margin: 0 !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
        z-index: 99 !important;
        gap: 4px !important;
    }

    .toggled-on .menu-item,
    .toggled .menu-item {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
        position: relative !important;
    }

    .toggled .menu &gt; li,
    .toggled-on .menu &gt; li {
        outline: 1.5px solid #4ab3e8 !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    .toggled-on .menu &gt; li &gt; a,
    .toggled .menu &gt; li &gt; a {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 14px 20px !important;
        border: none !important;
        border-radius: 0 !important;
        text-align: center !important;
        background: white !important;
        color: #333 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        min-width: unset !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .toggled-on .menu &gt; li &gt; a:hover,
    .toggled .menu &gt; li &gt; a:hover {
        background: #fff8f0 !important;
        color: #ff6f00 !important;
        transform: none !important;
    }

    .main-navigation .dropdown-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        border: 1.5px solid #ccc !important;
        border-radius: 4px !important;
        cursor: pointer !important;
        padding: 4px !important;
        margin: 0 0 0 8px !important;
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        position: static !important;
        vertical-align: middle !important;
        float: none !important;
        overflow: visible !important;
    }

    .toggled .menu-item-has-children,
    .toggled-on .menu-item-has-children {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        padding-right: 10px !important;
    }

    .toggled .menu-item-has-children &gt; a,
    .toggled-on .menu-item-has-children &gt; a {
        flex: 1 !important;
        text-align: center !important;
    }

    .toggled .menu &gt; li &gt; div &gt; a,
    .toggled-on .menu &gt; li &gt; div &gt; a {
        border: none !important;
        margin: 0 !important;
        min-width: unset !important;
        padding: 14px 20px !important;
        width: 100% !important;
        display: block !important;
        background: white !important;
        color: #333 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .toggled .menu &gt; li &gt; div &gt; a:hover,
    .toggled-on .menu &gt; li &gt; div &gt; a:hover {
        background: #fff8f0 !important;
        color: #ff6f00 !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .main-navigation .dropdown-toggle svg,
    .main-navigation .dropdown-toggle .svg-icon {
        display: block !important;
        width: 16px !important;
        height: 16px !important;
        fill: #ff6f00 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .menu-item-has-children &gt; .sub-menu {
        display: none !important;
        position: static !important;
        transform: none !important;
    }

    .menu-item-has-children &gt; .sub-menu.toggled-on {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        min-width: unset !important;
        background: #fff8f0 !important;
        border: none !important;
        border-radius: 0 0 6px 6px !important;
        box-shadow: none !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        z-index: auto !important;
    }

    .menu-item-has-children &gt; .sub-menu.toggled-on .menu-item {
        display: block !important;
        width: 100% !important;
        outline: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .menu-item-has-children &gt; .sub-menu.toggled-on .menu-item a {
        display: block !important;
        padding: 12px 20px !important;
        margin: 0 !important;
        font-size: 14px !important;
        color: #555 !important;
        text-align: center !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #ffe0c0 !important;
        border-radius: 0 !important;
        min-width: unset !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .menu-item-has-children &gt; .sub-menu.toggled-on .menu-item:last-child a {
        border-bottom: none !important;
    }

    .menu-item-has-children &gt; .sub-menu.toggled-on .menu-item a:hover {
        background: #ffe8cc !important;
        color: #ff6f00 !important;
        transform: none !important;
    }

    .menu-item-has-children &gt; .sub-menu.toggled-on .current-menu-item a {
        background: #ff6f00 !important;
        color: white !important;
    }
}


/* ============================================
   ФУТЕР – ДЫМЧАТОЕ СТЕКЛО
   ============================================ */

.site-footer {
    background: rgba(245, 245, 245, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    max-width: 900px !important;
    margin: 30px auto !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
    border: 1px solid #eee !important;
    border-top: 1px solid rgba(200, 200, 200, 0.3) !important;
    font-size: 12px !important;
    overflow: hidden !important;
}

.site-footer .wrap {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 15px !important;
}

.site-footer section.widget {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 8px !important;
}

.site-footer h2 {
    color: rgba(230, 126, 34, 0.9) !important;
    font-size: 12px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    border-bottom: 1px solid rgba(243, 156, 18, 0.5) !important;
    padding-bottom: 4px !important;
    margin-bottom: 6px !important;
}

.site-footer p,
.site-footer li,
.site-footer span {
    white-space: normal !important;
    word-wrap: break-word !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: rgba(60, 60, 60, 0.85) !important;
}

.site-footer a {
    color: rgba(52, 152, 219, 0.9) !important;
}

.site-footer a:hover {
    color: rgba(41, 128, 185, 1) !important;
}

.footer-note {
    text-align: center !important;
    margin-top: 15px !important;
}

.footer-note p {
    font-size: 11px !important;
    color: rgba(80, 80, 80, 0.85) !important;
    font-style: italic !important;
}




/* ============================================
   ОБРАЗОВАНИЕ С ДОКУМЕНТАМИ
   ============================================ */

.education-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--edu-gap);
    margin-bottom: var(--edu-gap);
    padding: 12px;
    border-radius: var(--edu-radius);
    transition: background 0.3s ease;
}

.education-list li:hover {
    background: var(--edu-hover-bg);
}

.edu-text { flex: 1; }

.edu-docs {
    display: flex;
    gap: var(--edu-doc-gap);
    flex-shrink: 0;
}

.edu-doc-thumb {
    width: var(--edu-thumb-width);
    height: var(--edu-thumb-height);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--edu-shadow);
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--edu-border-color);
}

.edu-doc-thumb:hover {
    transform: scale(1.15);
    border-color: var(--edu-accent);
    box-shadow: var(--edu-shadow-hover);
}

.edu-doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================
   ЛАЙТБОКС (ЕДИНЫЙ)
   ============================================ */

.edu-lightbox,
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.edu-lightbox {
    opacity: 0;
    visibility: hidden;
    display: flex;
}

.edu-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox.active {
    display: flex;
}

.edu-lightbox img,
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.edu-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.edu-lightbox-close:hover {
    color: var(--edu-accent);
}


/* ============================================
   ПАРТНЁРЫ
   ============================================ */

.content-block {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.partner-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--card-border, #dcdcdc);
    border-radius: 8px;
    box-shadow: var(--card-shadow, 0 2px 8px rgba(0,0,0,0.06));
    padding: 16px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-card:hover {
    box-shadow: var(--card-shadow-hover, 0 6px 20px rgba(22,160,133,0.15));
    border-color: var(--accent, #16a085);
}

.partner-logo img {
    width: 80px;
    height: auto;
    object-fit: contain;
}

.partner-info { text-align: center; }

.partner-info h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main, #2c3e50);
}

.partner-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--text-muted, #777);
}

.partner-link a {
    font-weight: 500;
    color: var(--accent, #16a085);
    text-decoration: none;
}

.partner-link a:hover { text-decoration: underline; }

.partner-photo img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .partners-grid { grid-template-columns: 1fr; }
    .partner-card { max-width: 100%; }
}


/* ============================================
   СТАТЬИ – СТРАНИЦА И ПРЕВЬЮ
   ============================================ */

.article-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #222;
    line-height: 1.3;
}

.article-meta {
    font-size: 0.95em;
    color: #777;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.article-content {
    font-size: 1.15em;
    line-height: 1.8;
    color: #444;
}

.article-content p { margin-bottom: 25px; }

.back-link {
    display: inline-block;
    margin: 40px 0 60px;
    padding: 10px 20px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #444;
    text-align: center;
}

.back-link:hover { background-color: #e0e0e0; }

.post-type-archive-publication .article-image-small img,
.page-id-44 .article-image-small img,
article img {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
}

.article-image-small {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f5f5 !important;
    overflow: hidden !important;
}

.article-image-small img {
    padding: 0 !important;
}

@media (max-width: 768px) {
    .article-title { font-size: 1.8em; }
    .article-meta {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
}


/* ============================================
   ГЛАВНАЯ – УМЕНЬШЕНИЕ ПРИВЕТСТВИЯ
   ============================================ */

.home .about-hero h1,
.page-id-111 .about-hero h1 {
    font-size: 1.5em !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
}

.home .about-hero h1 span,
.page-id-111 .about-hero h1 span {
    display: block !important;
    line-height: 1.3 !important;
}

@media (max-width: 768px) {
    .home .about-hero h1,
    .page-id-111 .about-hero h1 {
        font-size: 1.3em !important;
        line-height: 1.3 !important;
    }
}


/* ============================================
   FALLBACK ДЛЯ WEBVIEW (Telegram и т.п.)
   ============================================ */

.main-photo img#mainPhoto {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.photo-thumbnails .thumb-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0.7;
}

.photo-thumbnails .thumb-wrap.active {
  border-color: #ff6f00 !important;
  opacity: 1 !important;
  box-shadow: 0 4px 12px rgba(255,111,0,0.3);
}

.photo-thumbnails .thumb-wrap:hover { opacity: 0.9; }

.photo-thumbnails .thumb {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 20% !important;
  border: none !important;
}

.main-photo {
    min-height: 300px !important;
    background: #f0f0f0 !important;
}

.article-image-small img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* ============================================
   БИБЛИОГРАФИЯ – КРАСИВЫЕ КАРТОЧКИ
   ============================================ */

.bibliography-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.bib-card {
    background: #ffffff;
    border: 1px solid #4CAF50 !important;
    border-radius: 12px !important;
    padding: 25px 30px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.bib-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3) !important;
    border-color: #45a049 !important;
}

.bib-card .bib-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2d2926 !important;
    margin: 10px 0 8px !important;
    line-height: 1.4 !important;
}

.bib-card .bib-author {
    font-size: 16px !important;
    color: #666 !important;
    margin: 0 0 5px !important;
    font-style: italic !important;
}

.bib-card .bib-year {
    font-size: 14px !important;
    color: #888 !important;
    margin: 0 0 10px !important;
}

.bib-card .bib-annotation {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin: 10px 0 0 !important;
    padding-top: 10px !important;
    border-top: 1px solid #e0e0e0 !important;
}

.bib-card .bib-type {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.bib-card .bib-type.book {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

.bib-card .bib-type.article {
    background: #e3f2fd !important;
    color: #1565c0 !important;
}

.bib-card .bib-type.journal {
    background: #fff3e0 !important;
    color: #e65100 !important;
}

.bib-card .bib-number {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
    height: 24px !important;
    background: #4CAF50 !important;
    color: white !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    margin-right: 10px !important;
}

.bib-card .bib-added-date {
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    font-size: 11px !important;
    color: #999 !important;
    font-style: italic !important;
}

.bib-filter-bar {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 30px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
    border: 1px solid #e0e0e0 !important;
}

@media (max-width: 768px) {
    .bib-card { padding: 20px !important; }
    .bib-card .bib-title { font-size: 18px !important; }
    .bib-card .bib-author { font-size: 15px !important; }
    .bib-card .bib-annotation { font-size: 13px !important; }
    .bib-card .bib-added-date {
        position: static !important;
        display: block !important;
        margin-bottom: 10px !important;
        text-align: right !important;
    }
}

@media (max-width: 480px) {
    .bib-card { padding: 15px !important; }
    .bib-card .bib-title { font-size: 16px !important; }
}


/* ============================================
   ЕДИНАЯ ШАПКА ДЛЯ ВСЕХ СТРАНИЦ
   ============================================ */

.custom-header,
.custom-header-media {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
}

.custom-header-media img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    transform: none !important;
    margin: 0 !important;
}

.custom-header-media {
    position: relative !important;
    overflow: hidden !important;
}

.site-branding {
    position: absolute !important;
    top: 50% !important;
    left: 32px !important;
    right: 32px !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    z-index: 10 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* Сброс .wrap внутри шапки – тема центрирует его глобально */
.site-branding .wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    justify-content: flex-start !important;
    text-align: left !important;
    overflow: hidden !important;
}

.custom-logo-link img {
    max-height: 72px !important;
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0 !important;
}

.site-branding-text {
    text-align: left !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.site-title,
.site-title a {
    color: #fff !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7) !important;
    font-size: 1.1em !important;
    line-height: 1.2 !important;
    margin: 0 0 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.site-description {
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6) !important;
    font-size: 0.75em !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 768px) {
    .custom-header,
    .custom-header-media {
        height: 82px !important;
        min-height: 82px !important;
        max-height: 82px !important;
    }
    .site-branding {
        left: 12px !important;
        right: 12px !important;
        gap: 10px !important;
    }
    .site-branding .wrap {
        gap: 10px !important;
    }
    .custom-logo-link img {
        max-height: 50px !important;
    }
    .site-title,
    .site-title a {
        font-size: 0.85em !important;
    }
    .site-description {
        display: none !important;
    }
}

.wrap {
    margin-top: 0 !important;
}

.navigation-top {
    position: relative !important;
    z-index: 100 !important;
}

.custom-header {
    margin-bottom: 0 !important;
}

.navigation-top .main-navigation &gt; div &gt; ul &gt; li &gt; a {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin: 3px !important;
}

.single-article .post-thumbnail,
.single-article .single-featured-image-header {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================
   FIX: верхнее меню на десктопе – убираем треугольники
   и dropdown-toggle, выравниваем интервалы.
   Добавлено автоматически: см. план обновления меню.
   ============================================ */
@media (min-width: 768px) {
    /* dropdown-toggle (квадратная кнопка ▾ рядом с пунктом-родителем)
       на десктопе не нужна – выпадашка открывается по hover. */
    .main-navigation .dropdown-toggle,
    .main-navigation button.dropdown-toggle {
        display: none !important;
        visibility: hidden !important;
    }
    /* Chevron ▾ через ::after, который Customizer рисует у пунктов-родителей.
       Убираем – он смещает соседние кнопки и создаёт визуально неравный
       интервал между ними. */
    .menu &gt; li.menu-item-has-children &gt; a::after,
    .menu &gt; li.menu-item-has-children &gt; div &gt; a::after {
        content: none !important;
        display: none !important;
    }
}


/* ============================================
   FIX 2: верхнее меню на десктопе – JS-обёртка
   navigation.js оборачивает родительский <a> в
   <div style="display:flex;padding:0 10px 0 20px">
   и добавляет .dropdown-toggle кнопку. Это создаёт:
     - неравные интервалы между пунктами (доп.padding 30px)
     - проблему с hover/клик (увеличенная hit-area JS-обёртки)
   Делаем wrapper "прозрачным" для layout: display:contents
   убирает его как контейнер, дочерние элементы ведут себя
   как прямые потомки <li>. Кнопку-стрелку прячем отдельно.
   ============================================ */
@media (min-width: 768px) {
    /* Делаем JS-обёртку не учитываемой в layout */
    .menu &gt; li.menu-item-has-children &gt; div,
    .menu &gt; li.page_item_has_children &gt; div {
        all: unset !important;
        display: contents !important;
    }
    /* После contents все правила, заточенные под `&gt; li &gt; a`,
       снова работают для родительских пунктов. На всякий случай
       синхронизируем размеры с обычными пунктами: */
    .menu &gt; li.menu-item-has-children &gt; div &gt; a {
        margin: 5px !important;
        padding: 12px 20px !important;
        flex: none !important;
        text-align: center !important;
    }
}


/* ============================================
   FIX 3: hover-зона над подменю.
   Подменю шире LI родителя (200px vs ~150px), поэтому
   при движении мыши по диагонали в крайние пункты
   («Психологические тесты») курсор попадает в зазор,
   где ни bridge ни LI его не «держат», и :hover теряется.
   Расширяем мостик ::after до ширины подменю и центрируем,
   а сам зазор top:5px убираем – подменю прилегает к LI вплотную.
   ============================================ */
@media (min-width: 768px) {
    /* Мостик-«ловушка»: 240px (шире 200px подменю), центрирован,
       тянется ниже bottom LI на 12px – этого хватает чтобы
       курсор не «выпал» по дороге к подменю. */
    .menu &gt; li.menu-item-has-children::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 240px !important;
        height: 12px !important;
        background: transparent !important;
        z-index: 9998 !important;
    }
    /* Подменю прилегает к LI без зазора – нет «дыры» в hover. */
    .menu &gt; li.menu-item-has-children &gt; .sub-menu {
        top: 100% !important;
        padding-top: 8px !important;
    }
}


/* ── Кнопка записи на первом экране главной (27.08.2026) ── */
.home-cta-top { text-align: center; margin: 4px 0 20px; }
.home-cta-btn {
    display: inline-block;
    background: #ff6f00;
    color: #fff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    font-weight: 700;
    padding: 15px 34px;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(255,111,0,.35);
    transition: background .2s ease;
}
.home-cta-btn:hover { background: #e56300; color: #fff !important; }
.home-cta-note {
    display: block;
    margin-top: 8px;
    font-size: 13.5px;
    color: var(--c-text-muted, #8a8177);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@media (max-width: 767px) {
    .about-greeting { font-size: 26px !important; margin: 2px 0 6px !important; }
    .about-name { font-size: 20px !important; line-height: 1.3 !important; }
    .home-cta-btn { display: block; margin: 0 15px; }
}

/* ── Плашки-язычки поверх фото, механика Псичата + стекло/3D (27.08.2026).
   Тема подчёркивает ссылки через box-shadow – здесь он перебит с !important,
   иначе под каждой плашкой линия («скобочка снизу»). ── */
.single-photo { position: relative; }
.photo-badges {
    position: absolute;
    right: 0;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: flex-end;
    max-width: 160px;
    z-index: 2;
}
.pbadge,
.pbadge:hover,
.pbadge:focus {
    border-bottom: 0 !important;
    text-decoration: none !important;
}
.pbadge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.22) 100%);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.55);
    border-right: 0;
    color: #23201c !important;
    padding: 6px 10px 6px 12px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.65) !important;
    text-shadow: 0 1px 2px rgba(255,255,255,.5);
    transition: background .2s ease, transform .15s ease;
}
a.pbadge:hover {
    background: linear-gradient(135deg, rgba(255,255,255,.8) 0%, rgba(255,255,255,.45) 100%);
    transform: translateX(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.75) !important;
}
.pbadge-ico { font-size: 15px; flex-shrink: 0; }
.pbadge-num { font-weight: 800; color: #d35400; white-space: nowrap; }
html[data-theme="dark"] .pbadge {
    background: linear-gradient(135deg, rgba(30,27,23,.62) 0%, rgba(30,27,23,.32) 100%);
    border-color: rgba(255,255,255,.16);
    color: #f0e9df !important;
    box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.10) !important;
    text-shadow: none;
}
html[data-theme="dark"] a.pbadge:hover {
    background: linear-gradient(135deg, rgba(30,27,23,.85) 0%, rgba(30,27,23,.55) 100%);
    box-shadow: 0 6px 14px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
html[data-theme="dark"] .pbadge-num { color: #ffab61; }
@media (max-width: 767px) {
    .photo-badges { top: 14px; gap: 5px; max-width: 140px; }
    .pbadge { font-size: 11.5px; line-height: 14px; padding: 5px 8px 5px 10px; }
    .pbadge-ico { font-size: 13px; }
}

/* ── Зазор приветствия сокращён вдвое (27.08.2026) ── */
.about-greeting { margin-bottom: 4px !important; padding-bottom: 0 !important; }
.about-name { margin-top: 0 !important; padding-top: 0 !important; }

/* ── Паразитный отступ над «Привет!» снят (27.08.2026) ── */
.about-info-section { padding-top: 0 !important; }
.about-hero-content { align-items: flex-start; }
.about-greeting { margin-top: 0 !important; }

/* ── Мобильные карточки и табы (27.08.2026): иконка в строку с текстом,
   карточки цен и блок табов не во всю ширину экрана. Селекторы без «&gt;». ── */
@media (max-width: 767px) {
    .content-block {
        flex-direction: row !important;
        gap: 12px !important;
        margin-bottom: 14px !important;
        align-items: flex-start !important;
    }
    .block-icon {
        font-size: 22px !important;
        min-width: 30px !important;
        text-align: center !important;
    }
    .block-text h3 { font-size: 16px !important; }
    .block-text p { font-size: 15px !important; line-height: 1.55 !important; }
    .profile-tabs .tabs-container {
        margin: 0 14px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    .about-extra-section { padding: 0 !important; }
}

/* ── Пункты табов в строку (27.08.2026): контентный style на мобиле кладёт
   .help-item/.restriction-item колонкой – возвращаем ряд, иконка перед
   номером пункта. ── */
@media (max-width: 767px) {
    .help-item, .restriction-item {
        flex-direction: row !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    .help-icon, .restriction-icon {
        font-size: 20px !important;
        min-width: 26px !important;
        margin: 0 !important;
    }
    .help-text p, .restriction-item p { font-size: 15px !important; line-height: 1.55 !important; }
}

/* ── Мобильное меню (27.08.2026, v3). Два режима, оба ПОВЕРХ контента
   (контент не сдвигается, прыжков нет):
   1) обычная кнопка сверху – меню шторкой раскрывается ВНИЗ от верха экрана;
   2) плавающая кнопка после прокрутки (body.anuf-fab) – боковая панель
      слева, НЕ во всю ширину, слегка прозрачная, со стеклянным блюром.
   Десктоп (768px+) не затронут. Селекторы без «&gt;» – Customizer экранирует. ── */
@media (max-width: 767px) {
    /* режим 1: шторка сверху вниз */
    .js .main-navigation ul#top-menu {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 64px 14px 14px !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 9998 !important;
        background: rgba(255,255,255,.96) !important;
        box-shadow: 0 12px 30px rgba(0,0,0,.28) !important;
        border-radius: 0 0 14px 14px !important;
        transform: none !important;
        transition: max-height .4s ease, opacity .3s ease, visibility 0s linear .4s;
    }
    .js .main-navigation.toggled-on ul#top-menu {
        max-height: 88vh !important;
        overflow-y: auto !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: max-height .4s ease, opacity .3s ease, visibility 0s;
    }
    html[data-theme="dark"] .js .main-navigation ul#top-menu {
        background: rgba(31,28,25,.96) !important;
    }
    /* режим 2: из плавающей кнопки – боковая панель слева, полупрозрачная */
    body.anuf-fab .js-off-placeholder { display: none; }
    body.anuf-fab .main-navigation ul#top-menu {
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        width: 78% !important;
        max-width: 320px !important;
        max-height: none !important;
        height: 100% !important;
        padding: 64px 14px 18px !important;
        border-radius: 0 14px 14px 0 !important;
        background: rgba(255,255,255,.86) !important;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        transform: translateX(-102%) !important;
        opacity: 1;
        visibility: hidden;
        transition: transform .35s ease, visibility 0s linear .35s;
    }
    body.anuf-fab .main-navigation.toggled-on ul#top-menu {
        transform: none !important;
        overflow-y: auto !important;
        visibility: visible;
        pointer-events: auto;
        transition: transform .35s ease, visibility 0s;
    }
    html[data-theme="dark"] body.anuf-fab .main-navigation ul#top-menu {
        background: rgba(31,28,25,.86) !important;
    }
    /* пункты: слева, в одну строку с бейджем */
    ul#top-menu li.menu-item {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        float: none !important;
    }
    ul#top-menu li.menu-item a {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        width: auto !important;
        margin: 4px 6px !important;
        text-align: left !important;
        white-space: nowrap !important;
    }
    ul#top-menu .sn-menu-badge {
        display: inline-flex !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    /* кнопка: ВСЕГДА фиксированная пилюля слева сверху — позиция не
       меняется ни при каком скролле, мельтешению неоткуда взяться */
    .menu-toggle {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        width: auto !important;
        margin: 0 !important;
        z-index: 9999 !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        border-radius: 22px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,.3) !important;
        opacity: .95;
    }
}

/* ── Мобильные подменю (27.08.2026): пункты с детьми («Обо мне», «Полезно
   для мозга») – всё в одну линию без смещения; подменю раскрыты по
   умолчанию, кнопка ▼ спрятана. Селекторы без «&gt;». ── */
@media (max-width: 767px) {
    ul#top-menu li.menu-item-has-children div {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    ul#top-menu li.menu-item-has-children div a {
        flex: 0 1 auto !important;
    }
    ul#top-menu .dropdown-toggle { display: none !important; }
    ul#top-menu .sub-menu {
        display: block !important;
        max-height: none !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        transform: none !important;
        pointer-events: auto !important;
        padding-left: 26px !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* ── Зазор CTA → фото (27.08.2026): паразитное место между «Отвечаю
   лично…» и карточкой с фото сжато (верхний паддинг hero + низ CTA). ── */
@media (max-width: 767px) {
    .home-cta-top { margin: 4px 0 10px !important; }
    body .about-hero { padding-top: 4px !important; }
    .about-hero-content { gap: 16px !important; }
    .about-photo-section { margin-top: 0 !important; }
}

/* ── Карточки цен (27.08.2026, v5 — таблица). Значок|название двумя
   колонками без границ, таблица по центру. Десктоп: ячейки блоками —
   значок над заголовком, как было. Ширина 310 на мобиле перебивает
   «Единый макет страниц» специфичностью. ── */
.extra-card table.extra-head,
.extra-card .extra-head tbody,
.extra-card .extra-head tr,
.extra-card .extra-head td {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: block;
    text-align: center;
}
.extra-card .extra-head h4 { margin: 0 !important; }
.extra-card .extra-head .extra-icon { display: inline-block; }
@media (max-width: 767px) {
    body .about-extra-section .contacts-extra {
        max-width: 310px !important;
        margin: 0 auto !important;
    }
    body .about-extra-section { padding: 0 !important; margin-top: 0 !important; margin-bottom: 24px !important; }
    .profile-tabs { margin-bottom: 12px !important; padding-bottom: 0 !important; }
    .work-tab-content-wrap { padding-bottom: 14px !important; }
    .extra-card table.extra-head {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
        margin: 0 0 4px !important;
        border-collapse: collapse !important;
    }
    .extra-card .extra-head tbody { display: table-row-group !important; }
    .extra-card .extra-head tr { display: table-row !important; }
    .extra-card .extra-head td {
        display: table-cell !important;
        vertical-align: middle !important;
        text-align: center !important;
    }
    .extra-card .extra-head-ico { width: 15% !important; padding-right: 0 !important; text-align: right !important; }
    .extra-card .extra-head-title { width: 70% !important; padding: 0 6px !important; }
    .extra-card .extra-head-pad { width: 15% !important; }
    .extra-card .extra-head-title h4 { text-align: center !important; line-height: 1.3 !important; }
    .extra-card .extra-head .extra-icon { font-size: 20px !important; line-height: 1 !important; margin: 0 !important; }
    .extra-card p { text-align: center !important; margin: 6px 0 0 !important; }
}

/* ── Стрелка у раскрывающихся пунктов меню (27.08.2026, v2): тот же тонкий
   SVG-шеврон, что у «Полезно для мозга» (angle-down), через mask +
   currentColor. SVG в URL-кодировке — Customizer экранирует «больше/меньше».
   Десктоп; у ссылок внутри выпадашек стрелки нет. ── */
@media (min-width: 768px) {
    ul#top-menu li.menu-item-has-children a:not(:has(.sn-menu-title))::after {
        content: '';
        display: inline-block;
        width: 11px;
        height: 11px;
        margin-left: 6px;
        vertical-align: -1px;
        background-color: currentColor;
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8l8 8 8-8' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8l8 8 8-8' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
        opacity: .8;
    }
    ul#top-menu .sub-menu a::after { content: none !important; }
}

/* ── Приветствие главной: художественный шрифт с переливом (27.08.2026).
   Playfair Display (кириллица, enqueue в functions.php), шрифт уменьшен,
   перелив — медленный градиент приглушённых тёплых тонов (26s), заметный
   лишь при вглядывании. Тёмной теме — свои тона, reduced-motion — статика. ── */
.about-greeting,
.about-name {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    background: linear-gradient(100deg, #5a3a22 0%, #c1500f 22%, #eaa552 34%, #7c6130 50%, #d88a2e 66%, #9c5a1e 80%, #5a3a22 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #8a5a30;
    animation: anufShine 6s ease-in-out infinite;
}
.about-greeting { font-size: 30px !important; font-weight: 700 !important; }
.about-name    { font-size: 24px !important; font-weight: 600 !important; line-height: 1.35 !important; }
@keyframes anufShine {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
html[data-theme="dark"] .about-greeting,
html[data-theme="dark"] .about-name {
    background-image: linear-gradient(100deg, #b8945f 0%, #ef9048 22%, #ffdfa8 34%, #c2ac74 50%, #f7b866 66%, #d1934e 80%, #b8945f 100%);
    color: #d9b68c;
}
@media (max-width: 767px) {
    .about-greeting { font-size: 24px !important; margin: 2px 0 4px !important; }
    .about-name    { font-size: 19px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .about-greeting, .about-name { animation: none; }
}

/* ── Блик кнопки записи (27.08.2026, v2):
   полоса 45px, скос -45°, градиент .1→.4, пролёт за 0.6с + пауза 2.4с
   (цикл 3с, как у них: 20% пути — полёт, остальное — ожидание). ── */
.home-cta-btn,
.btn-cta-bottom {
    position: relative;
    overflow: hidden;
}
.home-cta-btn::after,
.btn-cta-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    width: 45px;
    height: 100%;
    background-image: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.4));
    transform: translateX(-85px) skewX(-45deg);
    animation: anufBtnFlash 2.6s linear infinite;
    pointer-events: none;
}
@keyframes anufBtnFlash {
    20%  { transform: translateX(min(100vw, 640px)) skewX(-45deg); }
    100% { transform: translateX(min(100vw, 640px)) skewX(-45deg); }
}
@media (prefers-reduced-motion: reduce) {
    .home-cta-btn::after, .btn-cta-bottom::after { animation: none; display: none; }
}

/* ── Кнопки записи: форма и ореол (27.08.2026, v4). Ореол усилен: три слоя
   drop-shadow (ядро/середина/дымка). Нижняя кнопка светится БЕЛЫМ с бирюзой —
   бирюзовый ореол на бирюзовом фоне секции был невидим. Обёртка верхней
   поднята над меню (z-index), чтобы свечение заползало на его поле. ── */
/* Кнопка выше навигации (у той z-index:100) — иначе её непрозрачный фон
   срезал верх ореола ровной линией. При наведении на само меню навигация
   временно поднимается над кнопкой, чтобы выпадашки не подрезались. */
.home-cta-top { position: relative; z-index: 120; }
.navigation-top:hover { z-index: 130 !important; }
/* Ореол резался overflow:hidden родительской панели темы — на главных
   обрезка снята, свечение ложится и на поле меню (27.08.2026). */
body.page-id-111 .twentyseventeen-panel,
body.page-id-1484 .twentyseventeen-panel {
    overflow: visible !important;
}
/* нижняя тень-«скобочка» в покое убрана у обеих кнопок (обе темы) */
.home-cta-btn,
.btn-cta-bottom,
html[data-theme="dark"] body .home-cta-btn,
html[data-theme="dark"] body .btn-cta-bottom {
    box-shadow: none !important;
}
.btn-cta-bottom {
    border-radius: 10px !important;
    transition: filter .7s ease !important;
}
.home-cta-btn {
    transition: filter .7s ease !important;
}
.home-cta-btn:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 6px rgba(255,140,40,.7))
            drop-shadow(0 0 20px rgba(255,111,0,.5))
            drop-shadow(0 0 46px rgba(255,111,0,.35));
}
.btn-cta-bottom:hover,
.btn-cta-bottom:active {
    transform: none !important;
    background: linear-gradient(135deg, #00bfa5, #00a88e) !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 7px rgba(255,255,255,.9))
            drop-shadow(0 0 22px rgba(255,255,255,.55))
            drop-shadow(0 0 46px rgba(0,140,120,.5));
}
html[data-theme="dark"] .btn-cta-bottom:hover,
html[data-theme="dark"] .btn-cta-bottom:active {
    background: linear-gradient(135deg, #00d4b8, #00bfa5) !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 7px rgba(160,255,238,.8))
            drop-shadow(0 0 24px rgba(0,212,184,.55))
            drop-shadow(0 0 50px rgba(0,212,184,.35));
}
html[data-theme="dark"] .home-cta-btn:hover {
    box-shadow: none !important;
    filter: drop-shadow(0 0 6px rgba(255,170,90,.8))
            drop-shadow(0 0 22px rgba(255,138,61,.55))
            drop-shadow(0 0 50px rgba(255,138,61,.35));
}

/* ── Раскат ореолов и единый ховер карточек (27.08.2026).
   Ховер карточек цен приведён к эталону контактов на всех страницах.
   Кнопки «Отправить заявку» (.form-submit) и «Пройти …» на методиках
   (.mth-take) получают тот же трёхслойный drop-shadow-ореол, что кнопки
   записи; подпрыгивание у них снято. ── */
/* эталон — контакты: при ховере только рамочка, без подъёма и теней */
body .extra-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #00bfa5 !important;
}

.anuf-cf .form-submit,
.mth-take {
    transition: filter .7s ease !important;
}
.anuf-cf .form-submit:hover:not(:disabled) {
    transform: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 6px rgba(0,212,184,.65))
            drop-shadow(0 0 20px rgba(0,191,165,.45))
            drop-shadow(0 0 44px rgba(0,191,165,.3));
}
.mth-take:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 6px rgba(175,110,220,.6))
            drop-shadow(0 0 20px rgba(142,68,173,.45))
            drop-shadow(0 0 44px rgba(142,68,173,.3));
}
html[data-theme="dark"] .anuf-cf .form-submit:hover:not(:disabled) {
    filter: drop-shadow(0 0 6px rgba(120,255,236,.6))
            drop-shadow(0 0 22px rgba(0,212,184,.5))
            drop-shadow(0 0 48px rgba(0,212,184,.32));
}
html[data-theme="dark"] .mth-take:hover {
    filter: drop-shadow(0 0 6px rgba(210,150,255,.6))
            drop-shadow(0 0 22px rgba(175,110,220,.5))
            drop-shadow(0 0 48px rgba(175,110,220,.32));
}

/* ── Контакты: ширины и карточки снаружи (27.08.2026).
   Карточки цен вынесены из контейнера — секция как на главной (1400px);
   главный контейнер с формой расширен до ширины главной; в тёмной теме
   панель контактов прозрачна — серая полоса вокруг строки ИНН была
   перепадом фона панели и body. ── */
body.page-id-44 .contacts-content-card,
body.page-id-1501 .contacts-content-card,
body.page-id-44 .contacts-content-card:has(.anuf-cf-wrap),
body.page-id-1501 .contacts-content-card:has(.anuf-cf-wrap),
body.page-id-44 .contacts-alt-head,
body.page-id-1501 .contacts-alt-head,
body.page-id-44 .contacts-alt-note,
body.page-id-1501 .contacts-alt-note {
    max-width: 1320px !important;
}
body.page-id-44 .about-extra-section,
body.page-id-1501 .about-extra-section {
    max-width: 1400px !important;
    margin: 34px auto 40px !important;
    padding: 0 40px !important;
}
html[data-theme="dark"] body.page-id-44 .twentyseventeen-panel,
html[data-theme="dark"] body.page-id-1501 .twentyseventeen-panel,
html[data-theme="dark"] body.page-id-44 article.page,
html[data-theme="dark"] body.page-id-1501 article.page {
    background: transparent !important;
}
/* длинная линия над строкой ИНН убрана совсем (обе темы) */
.anuf-requisites { border-top: 0 !important; }
html[data-theme="dark"] .anuf-requisites { color: #8f887f !important; }

/* ── Тёмный ховер карточек цен: рамочка + скромный медленный ореол ── */
.extra-card { transition: border-color .5s ease, filter .7s ease !important; }
html[data-theme="dark"] body .extra-card:hover {
    border-color: rgba(255,255,255,.65) !important;
    filter: drop-shadow(0 0 4px rgba(0,212,184,.35))
            drop-shadow(0 0 14px rgba(0,212,184,.22));
}