/* =====================================================================
   Крымское историческое обозрение — «Черноморский академизм»
   Слой поверх темы Total. Вставлять ПОСЛЕДНИМ блоком в
   Внешний вид → Дополнительный CSS (после crimeanreview-menu.css).
   Он перекрашивает прежние стили, поэтому порядок важен.
   ===================================================================== */
/* Шрифты лежат в теме: /wp-content/themes/Total/fonts/cr/ (абсолютный путь работает и при вставке CSS в Customizer) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/inter-var-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/inter-var-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/inter-var-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/inter-var-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'PT Serif';font-style:normal;font-weight:400;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/pt-serif-400-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'PT Serif';font-style:normal;font-weight:400;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/pt-serif-400-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'PT Serif';font-style:normal;font-weight:400;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/pt-serif-400-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'PT Serif';font-style:normal;font-weight:400;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/pt-serif-400-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'PT Serif';font-style:normal;font-weight:700;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/pt-serif-700-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'PT Serif';font-style:normal;font-weight:700;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/pt-serif-700-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'PT Serif';font-style:normal;font-weight:700;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/pt-serif-700-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'PT Serif';font-style:normal;font-weight:700;font-display:swap;src:url('/wp-content/themes/Total/fonts/cr/pt-serif-700-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root{
  --ac-side:#F4F5F7;      /* боковые панели */
  --ac-bg:#FFFFFF;        /* центр */
  --ac-navy:#1B365D;      /* основной акцент */
  --ac-gold:#B89B5E;      /* вторичный акцент */
  --ac-ink:#222222;       /* текст */
  --ac-muted:#5A6577;     /* метаданные */
  --ac-line:#E2E6EC;      /* границы колонок */
  --ac-rule:#E5E7EB;      /* линии в ленте */
}

/* ---------- Базовая типографика ---------- */
html body{background:var(--ac-bg) !important;color:var(--ac-ink);font-family:"Inter","PT Sans",system-ui,sans-serif;font-size:15.5px;line-height:1.6}
html body #main,html body #content-wrap,html body #primary,html body #content{background:var(--ac-bg)}
html body h1,html body h2,html body h3,
html body .vcex-feature-box-heading,
html body .widget-title{font-family:"PT Serif",Georgia,serif;color:var(--ac-navy);font-weight:700;letter-spacing:-.005em}
html body .vcex-feature-box-heading{font-size:22px;line-height:1.3;text-wrap:balance}
html body #content p{color:var(--ac-ink);line-height:1.6;max-width:68ch}
html body a{color:var(--ac-navy);text-decoration-color:rgba(184,155,94,.6);text-underline-offset:3px}
html body a:hover{color:var(--ac-gold);text-decoration-color:currentColor}
html body a:focus-visible,html body button:focus-visible{outline:2px solid var(--ac-gold);outline-offset:3px;border-radius:4px}
html body .vcex-list_item .fa,html body .vcex-list_item .vcex-icon-wrap{color:var(--ac-gold)}

/* =====================================================================
   ЛЕВАЯ КОЛОНКА
   ===================================================================== */
html body #site-header{background:var(--ac-side) !important;border-right:1px solid var(--ac-line) !important;box-shadow:none !important}
html body #site-header #site-logo img{box-shadow:none}

@media (min-width:960px){
  /* пункты */
  html body #site-navigation .dropdown-menu > li > a,
  html body #site-navigation .dropdown-menu > li > a .link-inner{
    font-family:"Inter",sans-serif !important;color:var(--ac-ink) !important;font-weight:500 !important;font-size:14px !important;background:transparent;box-shadow:none}
  html body #site-navigation .dropdown-menu > li > a{border-radius:4px !important;padding:8px 12px !important}

  /* разделители между пунктами */
  html body #site-navigation .dropdown-menu > li + li{border-top:1px solid var(--ac-line) !important}
  html body #site-navigation .dropdown-menu > li.lang-item,
  html body #site-navigation .dropdown-menu > li.search-toggle-li{border-top:0 !important}

  /* наведение */
  html body #site-navigation .dropdown-menu > li > a:hover,
  html body #site-navigation .dropdown-menu > li > a:hover .link-inner{background-color:#fff !important;color:var(--ac-navy) !important}

  /* активный раздел: белая плашка, синий текст, золотая метка слева (чтобы не сливался с «Текущим номером») */
  html body #site-navigation .dropdown-menu > li.current-menu-item > a,
  html body #site-navigation .dropdown-menu > li.current-menu-parent > a,
  html body #site-navigation .dropdown-menu > li.current-menu-ancestor > a{
    background-color:#fff !important;box-shadow:inset 3px 0 0 var(--ac-gold) !important}
  html body #site-navigation .dropdown-menu > li.current-menu-item > a .link-inner,
  html body #site-navigation .dropdown-menu > li.current-menu-parent > a .link-inner,
  html body #site-navigation .dropdown-menu > li.current-menu-ancestor > a .link-inner{
    background-color:transparent !important;color:var(--ac-navy) !important;font-weight:600 !important}

  /* «Текущий номер»: контрастная синяя плашка */
  html body #site-navigation .dropdown-menu > li > a[href*="post-series"],
  html body #site-navigation .dropdown-menu > li.current-menu-item > a[href*="post-series"]{
    background-color:var(--ac-navy) !important;color:#fff !important;border-radius:4px !important;
    padding:10px 14px !important;margin:6px 0 8px !important;box-shadow:none !important;font-weight:600 !important}
  html body #site-navigation .dropdown-menu > li > a[href*="post-series"] .link-inner{color:#fff !important;background:transparent !important}
  html body #site-navigation .dropdown-menu > li > a[href*="post-series"]:hover{background-color:var(--ac-gold) !important}
  html body #site-navigation .dropdown-menu > li > a[href*="post-series"]:hover .link-inner{color:#fff !important}
  html body #site-navigation .dropdown-menu > li:has(> a[href*="post-series"]) + li{border-top:0 !important}

  /* подпункты и плитки выпусков */
  html body #site-navigation .sub-menu li a{color:var(--ac-ink) !important;font-weight:400 !important;border-radius:4px !important}
  html body #site-navigation .sub-menu li a:hover{background:#fff !important;color:var(--ac-navy) !important}
  html body #site-navigation .sub-menu li.current-menu-item > a{background:var(--ac-navy) !important;color:#fff !important}
  html body .cr-chips li a{background:#fff !important;border:1px solid var(--ac-line) !important;border-radius:4px !important;color:var(--ac-ink) !important}
  html body .cr-chips li a:hover{border-color:var(--ac-gold) !important;color:var(--ac-navy) !important}
  html body .cr-chips li.current-menu-item a{background:var(--ac-navy) !important;border-color:var(--ac-navy) !important;color:#fff !important}

  /* переключатель языков RU | EN + поиск: нижний блок */
  html body #site-navigation .dropdown-menu > li.lang-item,
  html body #site-navigation .dropdown-menu > li.search-toggle-li{margin-top:12px !important;padding-top:0 !important}
  html body #site-navigation .dropdown-menu > li.lang-item > a,
  html body #site-navigation .dropdown-menu > li.search-toggle-li > a{
    background:#fff !important;border:1px solid var(--ac-line);border-radius:4px !important;color:var(--ac-muted) !important;
    justify-content:center;font-size:13px !important;font-weight:600 !important;letter-spacing:.04em;text-transform:uppercase}
  html body #site-navigation .dropdown-menu > li.lang-item > a:hover,
  html body #site-navigation .dropdown-menu > li.search-toggle-li > a:hover{border-color:var(--ac-gold);color:var(--ac-navy) !important}
  html body #site-navigation .dropdown-menu > li.lang-item{width:calc(50% - 3px) !important;margin-right:3px !important}
  html body #site-navigation .dropdown-menu > li.search-toggle-li{width:calc(50% - 3px) !important;margin-left:3px !important}
}

/* мобильное меню */
@media (max-width:959px){
  html body .full-screen-overlay-nav.wpex-mobile-menu{background:var(--ac-side) !important}
  html body .full-screen-overlay-nav-ul > li > a{color:var(--ac-ink) !important;font-weight:500 !important;border-radius:4px}
  html body .full-screen-overlay-nav-ul > li{border-bottom:1px solid var(--ac-line)}
  html body .full-screen-overlay-nav-ul > li.current-menu-item > a,
  html body .full-screen-overlay-nav-ul > li.current-menu-ancestor > a{color:var(--ac-navy) !important;box-shadow:inset 3px 0 0 var(--ac-gold);background:#fff}
  html body .full-screen-overlay-nav-ul > li > a[href*="post-series"]{
    background:var(--ac-navy) !important;color:#fff !important;box-shadow:none !important;border-radius:4px !important;padding:12px 14px !important}
  html body .full-screen-overlay-nav-ul .sub-menu li a{color:var(--ac-ink) !important;border-radius:4px}
  html body .full-screen-overlay-nav-ul .sub-menu li.current-menu-item > a{background:var(--ac-navy) !important;color:#fff !important}
  html body .cr-chips li a{background:#fff !important;border:1px solid var(--ac-line) !important;border-radius:4px !important;color:var(--ac-ink) !important}
  html body .full-screen-overlay-nav-close{background:#fff !important;border:1px solid var(--ac-line);box-shadow:0 2px 8px rgba(27,54,93,.15)}
  html body .full-screen-overlay-nav-ul > li.current-menu-ancestor > a,
  html body .full-screen-overlay-nav-ul > li.current-menu-item > a{padding-left:14px !important}
  html body .full-screen-overlay-nav-ul > li.lang-item > a{color:var(--ac-muted) !important}
  html body .full-screen-overlay-nav-ul > li.wpex-search input[type=search]{border:1px solid var(--ac-line) !important;border-radius:4px}
}

/* стрелка раскрытия в активном пункте десктопного меню */
html body #site-navigation li.current-menu-ancestor > a .cr-chevron,html body #site-navigation li.current-menu-item > a .cr-chevron{border-color:var(--ac-navy) !important}

/* =====================================================================
   ЦЕНТР: обложка, кнопка, DOI
   ===================================================================== */
html body .vcex-feature-box-image img{box-shadow:0 4px 14px rgba(27,54,93,.12);border-radius:2px;max-width:100%;height:auto}
html body .cr-cover-actions{margin:16px 0 24px}
html body .cr-cover-btn{
  display:inline-block;max-width:100%;box-sizing:border-box;text-align:center;
  background:var(--ac-navy);color:#fff !important;text-decoration:none !important;
  font-weight:600;font-size:14px;line-height:1.3;padding:10px 16px;border-radius:4px;
  transition:background-color .2s,transform .15s}
html body .cr-cover-btn:hover{background:var(--ac-gold);color:#fff !important}
html body .cr-cover-btn:active{transform:scale(.98)}
html body .cr-doi{margin:8px 0 0 !important;font-size:13px;color:var(--ac-muted)}

/* =====================================================================
   ЛЕНТА СТАТЕЙ
   ===================================================================== */
html body .blog-entry{background:transparent !important;border:0 !important;border-bottom:1px solid var(--ac-rule) !important;border-radius:0 !important;
  box-shadow:none !important;transform:none !important;margin:0 !important;padding:0 !important}
html body .blog-entry:hover{background:transparent !important;box-shadow:none !important;transform:none !important}
html body .blog-entry-header{display:block;padding:20px 0 0}
html body .blog-entry-title{margin:0 !important;padding:0 !important;font-family:"PT Serif",Georgia,serif;font-size:17px;font-weight:400;line-height:1.5}
html body .blog-entry-title .entry-author{display:inline !important;font-family:"Inter",sans-serif;font-size:15px;font-weight:700;color:var(--ac-ink);margin-right:.35em}
html body .blog-entry-header .blog-entry-title > a.entry-link{float:none !important;display:inline !important;margin:0 !important;width:auto !important;font-size:inherit;font-weight:400;color:var(--ac-navy) !important;text-decoration:none}
html body .blog-entry-header .blog-entry-title > a.entry-link:hover{color:var(--ac-gold) !important;text-decoration:underline}
html body .blog-entry-title .entry-pages{font-family:"Inter",sans-serif;font-size:14px;color:var(--ac-muted);white-space:nowrap}
/* тема делает float:left у заголовка, страниц и просмотров — в оглавлении всё идёт в обычном потоке */
html body .blog-entry-header .blog-entry-title{float:none !important;width:auto !important;display:block}
html body .blog-entry-title .entry-pages{display:inline !important;float:none !important}
html body .blog-entry-header .page-views{float:none !important;width:auto !important;clear:both}
html body .entry-doi{clear:both}
html body .entry-doi{margin-top:4px;font-size:13.5px;line-height:1.5;color:var(--ac-muted);overflow-wrap:anywhere}
html body .entry-doi a{color:var(--ac-navy)}
html body .entry-doi a:hover{color:var(--ac-gold)}
html body .page-views{margin-top:6px;padding-bottom:0 !important;font-size:13px;color:var(--ac-muted)}
html body .page-views *{color:var(--ac-muted)}

/* мини-кнопки (добавляются скриптом); иконка pdf прячется только если скрипт отработал */
html.cr-ac-js body .blog-entry .link-to-pdf{display:none !important}
html body .cr-actions{display:flex;flex-wrap:wrap;gap:8px;width:100%;margin-top:10px;padding:0 0 20px}
html body .cr-actions a{
  display:inline-block;border:1px solid var(--ac-gold);border-radius:4px;padding:3px 12px;
  font-size:12.5px;font-weight:500;line-height:1.5;color:var(--ac-navy);text-decoration:none;background:transparent;
  transition:background-color .2s,color .2s}
html body .cr-actions a:hover{background:var(--ac-gold);color:#fff}

/* пагинация */
html body ul.page-numbers{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start;margin:28px 0 0;padding:0;list-style:none}
html body ul.page-numbers li{margin:0;border:0}
html body .page-numbers a.page-numbers,html body .page-numbers span.page-numbers{
  display:inline-block;min-width:36px;box-sizing:border-box;text-align:center;padding:6px 10px;
  border:1px solid var(--ac-line);border-radius:4px;color:var(--ac-navy);background:#fff;line-height:1.4}
html body .page-numbers a.page-numbers:hover{border-color:var(--ac-gold);color:var(--ac-gold)}
html body .page-numbers .current,html body .page-numbers span.page-numbers.current{background:var(--ac-navy) !important;border-color:var(--ac-navy) !important;color:#fff !important}
html body .page-numbers .dots{border-color:transparent;background:transparent}

/* =====================================================================
   ПРАВАЯ КОЛОНКА
   ===================================================================== */
html body #sidebar{background:var(--ac-side);border:1px solid var(--ac-line);border-radius:4px;padding:12px 24px 20px !important;box-sizing:border-box}
html body #sidebar .sidebar-box,html body #sidebar .widget{margin:0 0 28px !important;padding:0}
html body #sidebar .widget:last-child{margin-bottom:0 !important}
html body #sidebar,html body #sidebar .widget,html body #sidebar a{overflow-wrap:anywhere;min-width:0}
html body #sidebar .widget-title{font-size:15px;margin:0 0 8px;padding-bottom:6px;border-bottom:1px solid var(--ac-gold)}
html body #sidebar,html body #sidebar p{color:var(--ac-muted);font-size:14px}
html body #sidebar a img{
  background:transparent;border:0;border-radius:0;padding:0;
  filter:grayscale(100%) opacity(.75);mix-blend-mode:multiply;
  transition:filter .25s ease,transform .25s ease}
html body #sidebar a:hover img{filter:grayscale(0%) opacity(1);mix-blend-mode:normal;transform:none;box-shadow:none}

/* ---------- Подвал ---------- */
html body .site-footer{background:var(--ac-side);color:var(--ac-muted);border-top:1px solid var(--ac-line)}
html body .site-footer a{color:var(--ac-navy)}


/* ---------- Шапка страницы выпуска ---------- */
html body .issue-head{margin:0 0 28px;padding:0 0 22px;border-bottom:1px solid var(--ac-rule)}
html body .issue-head__title{margin:0 0 12px;font-size:26px;line-height:1.25;text-wrap:balance}
html body .issue-head__meta{display:flex;flex-direction:column;gap:4px;margin:0 0 16px;font-size:15px;color:var(--ac-muted)}
html body .issue-head__meta > span{display:block;overflow-wrap:anywhere}
html body .issue-head__doi a{color:var(--ac-navy)}
html body .issue-head__doi a:hover{color:var(--ac-gold)}
html body a.issue-head__btn{display:inline-block;float:none !important;background:var(--ac-navy);color:#fff !important;text-decoration:none !important;font-weight:600;font-size:14.5px;line-height:1.3;padding:11px 20px;border-radius:4px;transition:background-color .2s,transform .15s}
html body a.issue-head__btn:hover{background:var(--ac-gold)}
html body a.issue-head__btn:active{transform:scale(.98)}
html body .issue-section,html body .issue-rubric{margin:28px 0 4px;padding-bottom:8px;border-bottom:1px solid var(--ac-gold);font-size:19px}
html body .issue-rubric:first-of-type{margin-top:0}

/* ---------- Планшеты и телефоны ---------- */
@media (max-width:959px){
  html body #sidebar{margin-top:32px;padding:8px 20px 20px !important}
  html body #sidebar a img{max-width:240px !important;max-height:90px;width:auto !important;height:auto !important;object-fit:contain}
  /* планшет: компактная шапка, колонки друг под другом */
  html body #site-header #site-logo img{width:auto !important;max-width:72px !important;max-height:72px !important}
  html body #site-logo{padding:0 !important}
  html body #primary,html body #sidebar{float:none !important;width:100% !important;max-width:none !important}
  html body .vcex-feature-box-media,html body .vcex-feature-box-content{width:100% !important;float:none !important}
  html body .vcex-feature-box-image img{max-width:280px;margin:0 auto 8px;display:block}
  html body .cr-cover-actions{text-align:center}
}
@media (max-width:600px){
  html body .cr-cover-btn{display:block}
  html body .issue-head__title{font-size:21px}
  html body a.issue-head__btn{display:block;text-align:center}
  html body .post-series-details:not(.issue-head__meta){font-size:14px;overflow-wrap:anywhere}
  html body .post-series-details:not(.issue-head__meta) > span{display:block;margin-bottom:6px}
  html body .blog-entry-title{font-size:16px}
}
@media (prefers-reduced-motion:reduce){html body *{transition:none !important}}

/* ===== Главная ===== */

html body .current-issue{display:flex;margin-top:28px;padding:20px 24px;background:#F4F5F7;border-top:2px solid #B89B5E;clear:both}
html body .current-issue__info{flex:1 1 auto;min-width:0}
html body .current-issue__label{margin:0 0 6px;font-size:14px;font-weight:600;color:#5A6577}
html body .current-issue__title{margin:0 0 12px;font-family:"PT Serif",Georgia,serif;font-size:21px;line-height:1.35;font-weight:700;color:#222;text-wrap:balance}
html body .current-issue__doi{font-size:14px;color:#5A6577;overflow-wrap:anywhere}
html body .current-issue__doi a{color:#1B365D}
html body .current-issue__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
html body a.current-issue__btn{display:inline-block;padding:10px 18px;border-radius:4px;border:1px solid #1B365D;background:#1B365D;color:#fff;font-weight:600;font-size:14px;line-height:1.4;text-decoration:none;transition:background-color .2s,border-color .2s,color .2s,transform .15s}
html body a.current-issue__btn:hover{background:#B89B5E;border-color:#B89B5E;color:#fff}
html body a.current-issue__btn:active{transform:scale(.98)}
html body a.current-issue__btn--ghost{background:#fff;color:#1B365D;border-color:#B89B5E}

html body .home-section{margin:34px 0 0;padding-top:20px;border-top:1px solid #B89B5E;clear:both}
html body .home-section__title{margin:0 0 10px;font-family:"PT Serif",Georgia,serif;font-size:22px;line-height:1.3;font-weight:700;color:#1B365D}
html body .home-section p{margin:0 0 12px;font-size:15px;line-height:1.6;color:#222;max-width:68ch;text-wrap:pretty}

html body .home-news__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 22px}
html body .home-news__item{padding:6px 0 16px;border-bottom:1px dashed #C9CFD9;overflow-wrap:break-word}
html body .home-news__title{margin:0 0 8px;font-family:"PT Serif",Georgia,serif;font-size:16px;line-height:1.35;font-weight:700}
html body .home-news__title a{color:#1B365D;text-decoration:none}
html body .home-news__title a:hover{color:#B89B5E}
html body .home-news__date{display:block;margin-bottom:8px;font-size:13px;color:#5A6577}
html body .home-news p.home-news__excerpt{margin:0;font-size:14px;line-height:1.55}


@media (max-width:600px){
 html body .current-issue{flex-wrap:wrap;gap:14px;padding:16px}
 html body .current-issue__info{flex:1 1 150px}
 html body .current-issue__title{font-size:17px}
 html body a.current-issue__btn{flex:1 1 100%;text-align:center}
 html body .home-news__grid{grid-template-columns:minmax(0,1fr)}
}

/* ===== Правая колонка: «Индексация» — по одному логотипу в ряд, одинаковые отступы ===== */
html body #sidebar .widget_media_image{margin:0 0 10px !important}
html body #sidebar .widget_media_image a{display:flex;align-items:center;justify-content:center;min-height:68px;padding:8px 10px;box-sizing:border-box;background:#fff;border:1px solid #E2E6EC;border-radius:4px;transition:border-color .2s}
html body #sidebar .widget_media_image a:hover{border-color:#B89B5E}
html body #sidebar .widget_media_image a img{display:block;width:auto !important;height:auto !important;max-width:100% !important;max-height:64px !important;object-fit:contain}
html body #sidebar .widget:not(.widget_media_image) + .widget_media_image::before{content:"Индексация";display:block;margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid #B89B5E;font-family:"PT Serif",Georgia,serif;font-size:15px;font-weight:700;color:#1B365D}
html:lang(en) body #sidebar .widget:not(.widget_media_image) + .widget_media_image::before{content:"Indexing"}
@media (max-width:959px){
 html body #sidebar #sidebar-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:10px;align-items:start}
 html body #sidebar .widget:not(.widget_media_image),html body #sidebar .widget:not(.widget_media_image) + .widget_media_image{grid-column:1 / -1}
}

/* ===== Переключатель языка RU | EN в верху шапки ===== */
html body #site-header .cr-lang{display:flex;align-items:center;justify-content:flex-end;gap:2px;line-height:1}
html body #site-header .cr-lang a.cr-lang__link{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 6px;border-radius:4px;font-size:13px;font-weight:600;letter-spacing:.04em;color:#5A6577;text-decoration:none;transition:background-color .2s,color .2s}
html body #site-header .cr-lang a.cr-lang__link:hover{background:#fff;color:#1B365D}
html body #site-header .cr-lang a.cr-lang__link.is-active{background:#1B365D;color:#fff}
html body #site-header .cr-lang__sep{color:#B89B5E;font-size:13px}
/* поиск остался в нижней строке один — на всю ширину */
html body #site-navigation .dropdown-menu > li.search-toggle-li,
html body .full-screen-overlay-nav-ul > li.search-toggle-li,
html body .full-screen-overlay-nav-ul > li.wpex-search{width:100% !important;margin-left:0 !important}
@media (min-width:960px){
 html body #site-header .cr-lang{padding:8px 10px 0}
 html body #site-header #site-logo{padding-top:0 !important;margin-top:2px}
}
@media (max-width:959px){
 html body #site-header #site-header-inner{position:relative}
 html body #site-header .cr-lang{position:absolute;right:68px;top:50%;transform:translateY(-50%);z-index:20}
 html body #site-header .cr-lang a.cr-lang__link{min-width:40px;height:40px}
}

/* ===== Новости: ссылка «Все новости», страница записи и список рубрики ===== */
html body .home-section p.home-news__all{margin:12px 0 0;font-size:14px;font-weight:600}
html body .home-news__all a{color:#1B365D;text-decoration:none}
html body .home-news__all a:hover{color:#B89B5E}
html body .cr-news-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 20px;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid #B89B5E;font-size:14px;color:#5A6577}
html body .cr-news-meta a{color:#1B365D;font-weight:600}
html body .cr-news-entry .blog-entry-title{margin:0 0 4px}
html body .cr-news-entry__date{display:block;font-size:13px;color:#5A6577}

/* ===== Низкие экраны: боковая колонка прокручивается ===== */
@media (min-width:960px){
 html body #site-header#site-header{overflow-x:hidden !important;overflow-y:auto !important;overscroll-behavior:contain;scrollbar-width:thin}
}

/* ===== Телефон: подвал не выходит за край, компактная плашка cookie ===== */
@media (max-width:959px){
 html body #footer-inner{margin-left:auto !important;margin-right:auto !important;box-sizing:border-box}
 html body #footer img{max-width:100%;height:auto}
}
@media (max-width:600px){
 html body .lwpcngNotice{padding:10px 14px !important}
 html body .lwpcngNotice .lwpcngNotice_message,html body .lwpcngNotice .lwpcngNotice_message *{font-size:12px !important;line-height:16px !important;margin-top:0;margin-bottom:0}
 html body .lwpcngNotice .lwpcngNotice_buttons{margin-top:8px !important}
 html body .lwpcngNotice .lwpcngNotice_accept{font-size:14px !important;min-height:36px;box-sizing:border-box;margin:0 !important}
}

/* ===== Подвал: лаконичная сетка в палитре сайта (тексты не меняются) ===== */
html body #footer#footer{background:#F4F5F7 !important;color:#5A6577 !important;border-top:1px solid #B89B5E !important;padding:0}
html body #footer#footer #footer-inner{padding-top:24px;padding-bottom:24px}
html body #footer#footer #footer-widgets{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px 32px;margin:0;padding:0}
/* третья колонка без виджетов (блок РИНЦ скрыт в functions.php) не занимает места */
html body #footer#footer .footer-box.col-3:not(:has(.footer-widget)){display:none}
html body #footer#footer #footer-widgets::before,html body #footer#footer #footer-widgets::after{content:none}
html body #footer#footer .footer-box{float:none;width:auto;margin:0;padding:0;min-width:0}
html body #footer#footer .footer-box + .footer-box{border-left:1px solid #DDE1E8;padding-left:32px}
html body #footer#footer .footer-widget{margin:0;padding:0}
html body #footer#footer,html body #footer#footer p,html body #footer#footer .textwidget{font-size:13px;line-height:1.55;color:#5A6577 !important}
html body #footer#footer p{margin:0}
html body #footer#footer .widget-title{margin:0 0 6px;font-family:"PT Serif",Georgia,serif;font-size:14px;line-height:1.4;font-weight:700;color:#1B365D !important;text-wrap:balance}
/* средняя колонка: регистрация СМИ (на каждом языке своя), лицензия под ней */
html body #footer#footer .footer-box.col-2{display:flex;flex-direction:column;gap:12px}
html body #footer#footer .footer-box.col-2 > .footer-widget:last-child{padding-top:12px;border-top:1px solid #DDE1E8;display:flow-root}
html body #footer#footer .footer-box.col-2 > .footer-widget:last-child img{float:left;width:66px;height:auto;margin:3px 12px 0 0}
html body #footer#footer .footer-box.col-2 > .footer-widget:last-child br{display:none}
html body #footer#footer .footer-box.col-2 > .footer-widget:last-child .textwidget{font-size:12px;line-height:1.5}
/* ссылки */
html body #footer#footer .textwidget a{color:#1B365D !important;text-decoration:underline;text-decoration-color:rgba(27,54,93,.3);text-underline-offset:2px;transition:text-decoration-color .2s}
html body #footer#footer .textwidget a:hover{text-decoration-color:#B89B5E}
html body #footer#footer a:focus-visible{outline:2px solid #1B365D;outline-offset:2px}
@media (max-width:959px){
 html body #footer#footer #footer-widgets{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #footer#footer .footer-box.col-3{grid-column:1 / -1;border-left:0;padding:16px 0 0;border-top:1px solid #DDE1E8}
}
@media (max-width:600px){
 html body #footer#footer #footer-inner{padding-top:20px;padding-bottom:20px}
 html body #footer#footer #footer-widgets{grid-template-columns:minmax(0,1fr);gap:16px}
 html body #footer#footer .footer-box + .footer-box{border-left:0;padding:16px 0 0;border-top:1px solid #DDE1E8}
}
