/*

Theme Name: KRKK Enterprise Theme

Theme URI: https://ulkomkorp.ru/

Author: ОГКП «Корпорация развития коммунального комплекса Ульяновской области»

Author URI: https://ulkomkorp.ru/

Description: Универсальная официальная современная тема для государственных и корпоративных предприятий, ЖКХ, ресурсоснабжающих организаций и порталов услуг. Полная интеграция с WordPress Customizer, настраиваемый порядок секций, поддержка темной/светлой темы, версии для слабовидящих ГОСТ Р 52872, виджетов Госуслуги ПОС и произвольных инфо-блоков.

Version: 1.3.3

Requires at least: 5.8

Tested up to: 6.7

Requires PHP: 7.4

License: GNU General Public License v2 or later

License URI: http://www.gnu.org/licenses/gpl-2.0.html

Text Domain: krkk-theme

*/



:root {

  /* Фирменная палитра бренда (мягкие гармоничные оттенки из логотипа) */

  --brand-blue: #185294;

  --brand-blue-hover: #123e72;

  --brand-blue-light: #edf4fa;

  --brand-red: #b93333;

  --brand-red-hover: #9e2727;

  --brand-red-light: #faecec;



  /* Светлая тема (Light Mode — по умолчанию) */

  --bg-page: #f5f7fb;

  --bg-surface: #ffffff;

  --bg-surface-elevated: #ffffff;

  --bg-subtle: #edf2f7;

  --bg-hero-overlay: linear-gradient(135deg, rgba(10, 24, 46, 0.78) 0%, rgba(13, 19, 31, 0.62) 100%);



  --text-main: #1e293b;

  --text-muted: #5c6b82;

  --text-light: #94a3b8;

  --text-inverse: #ffffff;



  --border-color: #e2e8f0;

  --border-light: #edf2f7;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);

  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);



  --radius-sm: 6px;

  --radius-md: 10px;

  --radius-lg: 16px;

  --radius-full: 9999px;



  --header-height: 120px;

  --container-max: 1240px;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

}



/* ==========================================================================

   Тёмная тема (Dark Mode) — мягкие комфортные тона без слепящей яркости

   ========================================================================== */

@media (prefers-color-scheme: dark) {

  :root:not(.theme-light) {

    --bg-page: #0d131f;

    --bg-surface: #151e2e;

    --bg-surface-elevated: #1b263b;

    --bg-subtle: #192336;

    --bg-hero-overlay: linear-gradient(135deg, rgba(10, 24, 46, 0.78) 0%, rgba(13, 19, 31, 0.62) 100%);



    --brand-blue: #4a8cd2;

    --brand-blue-hover: #619fe5;

    --brand-blue-light: rgba(74, 140, 210, 0.14);

    --brand-red: #d06563;

    --brand-red-hover: #de7876;

    --brand-red-light: rgba(208, 101, 99, 0.16);



    --text-main: #edf2f7;

    --text-muted: #94a3b8;

    --text-light: #64748b;

    --text-inverse: #ffffff;



    --border-color: #243247;

    --border-light: #1c2738;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);

    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);

    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.45);

  }

}



:root.theme-dark {

  --bg-page: #0d131f;

  --bg-surface: #151e2e;

  --bg-surface-elevated: #1b263b;

  --bg-subtle: #192336;

  --bg-hero-overlay: linear-gradient(135deg, rgba(10, 24, 46, 0.78) 0%, rgba(13, 19, 31, 0.62) 100%);



  --brand-blue: #4a8cd2;

  --brand-blue-hover: #619fe5;

  --brand-blue-light: rgba(74, 140, 210, 0.14);

  --brand-red: #d06563;

  --brand-red-hover: #de7876;

  --brand-red-light: rgba(208, 101, 99, 0.16);



  --text-main: #edf2f7;

  --text-muted: #94a3b8;

  --text-light: #64748b;

  --text-inverse: #ffffff;



  --border-color: #243247;

  --border-light: #1c2738;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);

  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);

  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.45);

}



/* ==========================================================================

   Режим слабовидящих (Accessibility Mode по ГОСТ Р 52872)

   ========================================================================== */

body.bvi-active {

  --bg-page: #ffffff !important;

  --bg-surface: #ffffff !important;

  --text-main: #000000 !important;

  --text-muted: #222222 !important;

  --border-color: #000000 !important;

  font-size: 19px !important;

  letter-spacing: 0.05em !important;

}

body.bvi-active img {

  filter: grayscale(100%) !important;

}



/* ==========================================================================

   Базовый сброс и элементы

   ========================================================================== */

*, *::before, *::after {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

}



html, body {

  overflow-x: hidden;

  max-width: 100%;

}



html {

  font-size: 16px;

  scroll-behavior: smooth;

}



body {

  font-family: var(--font-family);

  background-color: var(--bg-page);

  color: var(--text-main);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;

  transition: background-color var(--transition), color var(--transition);

}



a {

  color: inherit;

  text-decoration: none;

  transition: color var(--transition);

}



img {

  max-width: 100%;

  height: auto;

  display: block;

}



button, input, select, textarea {

  font-family: inherit;

  font-size: inherit;

}



/* Подсветка фокуса для доступности и навигации Smart TV с пульта */

:focus-visible {

  outline: 3px solid var(--brand-red) !important;

  outline-offset: 3px !important;

}



.container {

  width: 100%;

  max-width: var(--container-max);

  margin-left: auto;

  margin-right: auto;

  padding-left: 20px;

  padding-right: 20px;

}



/* Фирменный разделитель бренда (двухцветный со стрелками) */

.brand-divider {

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 32px 0;

  position: relative;

}

.brand-divider::before {

  content: "";

  height: 2px;

  flex: 1;

  background: var(--brand-blue);

  border-radius: 2px 0 0 2px;

  opacity: 0.7;

}

.brand-divider::after {

  content: "";

  height: 2px;

  flex: 1;

  background: var(--brand-red);

  border-radius: 0 2px 2px 0;

  opacity: 0.7;

}

.brand-divider-marker {

  width: 0;

  height: 0;

  border-left: 7px solid transparent;

  border-right: 7px solid transparent;

  border-top: 9px solid var(--brand-red);

  margin: 0 4px;

}



/* ==========================================================================

   Шапка сайта (Header)

   ========================================================================== */

.site-header {

  background-color: var(--bg-surface);

  border-bottom: 1px solid var(--border-color);

  position: sticky;

  top: 0;

  z-index: 1000;

  box-shadow: var(--shadow-sm);

  transition: background-color var(--transition), border-color var(--transition);

}



/* Верхняя служебная полоса */

.topbar {

  background-color: var(--bg-subtle);

  font-size: 13px;

  border-bottom: 1px solid var(--border-color);

  padding: 6px 0;

}

.topbar-inner {

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

}

.topbar-left, .topbar-right {

  display: flex;

  align-items: center;

  gap: 18px;

}

.topbar-link {

  display: flex;

  align-items: center;

  gap: 6px;

  color: var(--text-muted);

  font-weight: 500;

}

.topbar-link:hover {

  color: var(--brand-blue);

}

.topbar-phone-emergency {

  color: var(--brand-red);

  font-weight: 700;

  display: flex;

  align-items: center;

  gap: 6px;

}

.badge-24 {

  background: var(--brand-red);

  color: #fff;

  font-size: 10px;

  padding: 1px 5px;

  border-radius: 4px;

  font-weight: 700;

  text-transform: uppercase;

}

.topbar-btn {

  background: none;

  border: 1px solid var(--border-color);

  color: var(--text-main);

  padding: 3px 10px;

  border-radius: var(--radius-sm);

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 5px;

  font-size: 12px;

  transition: var(--transition);

}

.topbar-btn:hover {

  background: var(--bg-surface);

  border-color: var(--brand-blue);

  color: var(--brand-blue);

}



/* Социальные сети в верхней панели */

.topbar-socials {

  display: flex;

  align-items: center;

  gap: 6px;

}

.social-icon-btn {

  display: inline-flex;

  align-items: center;

  gap: 4px;

  padding: 2px 8px;

  border-radius: var(--radius-sm);

  font-size: 11.5px;

  font-weight: 600;

  color: var(--text-muted);

  border: 1px solid var(--border-color);

  background: var(--bg-surface);

  transition: var(--transition);

}

.social-icon-btn:hover {

  border-color: var(--brand-blue);

  color: var(--brand-blue);

}

.social-icon-btn.vk-btn:hover {

  color: #0077ff;

  border-color: #0077ff;

  background: rgba(0, 119, 255, 0.08);

}

.social-icon-btn.max-btn:hover {

  color: #6366f1;

  border-color: #6366f1;

  background: rgba(99, 102, 241, 0.08);

}



/* Главная панель шапки */

.header-main {

  padding: 12px 0;

}

.header-inner {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

}

.logo-block {

  display: flex;

  align-items: center;

  gap: 14px;

  flex-shrink: 1;

  min-width: 0;

  text-decoration: none;

}

.logo-img {

  width: 58px;

  height: 44px;

  object-fit: contain;

  flex-shrink: 0;

}

.logo-text {

  display: flex;

  flex-direction: column;

  min-width: 0;

  gap: 1px;

}

.logo-subtitle {

  font-size: 11px;

  font-weight: 500;

  color: var(--text-muted);

  line-height: 1.25;

  letter-spacing: 0.01em;

}

.logo-title {

  font-size: 13.5px;

  font-weight: 800;

  line-height: 1.25;

  color: var(--brand-blue);

  text-transform: uppercase;

  letter-spacing: -0.01em;

}



.header-actions {

  display: flex;

  align-items: center;

  gap: 10px;

  flex-shrink: 0;

}



/* Кнопки */

.btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 10px 18px;

  border-radius: var(--radius-sm);

  font-weight: 600;

  font-size: 13.5px;

  cursor: pointer;

  border: none;

  transition: var(--transition);

  text-align: center;

  box-sizing: border-box;

}

.btn-primary {

  background-color: var(--brand-blue);

  color: #fff;

}

.btn-primary:hover {

  background-color: var(--brand-blue-hover);

}

.btn-accent {

  background-color: var(--brand-red);

  color: #fff;

  box-shadow: 0 2px 8px rgba(184, 50, 50, 0.2);

}

.btn-accent:hover {

  background-color: var(--brand-red-hover);

  transform: translateY(-1px);

}

.btn-outline {

  background: transparent;

  border: 1px solid var(--border-color);

  color: var(--text-main);

}

.btn-outline:hover {

  border-color: var(--brand-blue);

  color: var(--brand-blue);

  background: var(--brand-blue-light);

}

.btn-hero-secondary {

  border-color: rgba(255, 255, 255, 0.4);

  color: #ffffff;

  background: transparent;

  backdrop-filter: blur(4px);

  -webkit-backdrop-filter: blur(4px);

  transition: all var(--transition);

}

.btn-hero-secondary:hover {

  background: rgba(255, 255, 255, 0.15);

  border-color: #ffffff;

  color: #ffffff;

}



/* Мобильные элементы шапки */

.mobile-btn-phone {

  display: none;

  width: 36px;

  height: 36px;

  border-radius: var(--radius-sm);

  background: var(--brand-red-light);

  color: var(--brand-red);

  align-items: center;

  justify-content: center;

  border: 1px solid var(--brand-red);

  flex-shrink: 0;

}

.mobile-btn-theme {

  display: none;

  width: 36px;

  height: 36px;

  border-radius: var(--radius-sm);

  background: var(--bg-subtle);

  color: var(--text-main);

  align-items: center;

  justify-content: center;

  border: 1px solid var(--border-color);

  cursor: pointer;

  flex-shrink: 0;

}

.mobile-toggle {

  display: none;

  width: 36px;

  height: 36px;

  background: var(--bg-subtle);

  border: 1px solid var(--border-color);

  border-radius: var(--radius-sm);

  cursor: pointer;

  color: var(--text-main);

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}



/* Главная навигация */

.nav-bar {

  background-color: var(--brand-blue);

  color: #fff;

}

.nav-list {

  display: flex;

  list-style: none;

  gap: 2px;

}

.nav-item {

  position: relative;

}

.nav-link-wrap {

  display: flex;

  align-items: center;

}

.nav-link {

  display: flex;

  align-items: center;

  gap: 6px;

  padding: 13px 15px;

  font-size: 13.5px;

  font-weight: 600;

  color: #ffffff;

  transition: background-color var(--transition);

}

.nav-link:hover, .nav-item.active .nav-link {

  background-color: var(--brand-blue-hover);

}

.dropdown-toggle {

  display: none;

}



.dropdown-menu {

  position: absolute;

  top: 100%;

  left: 0;

  background-color: var(--bg-surface);

  color: var(--text-main);

  min-width: 260px;

  box-shadow: var(--shadow-lg);

  border-radius: 0 0 var(--radius-md) var(--radius-md);

  border: 1px solid var(--border-color);

  border-top: none;

  opacity: 0;

  visibility: hidden;

  transform: translateY(10px);

  transition: var(--transition);

  list-style: none;

  padding: 8px 0;

  z-index: 50;

}

.nav-item:hover .dropdown-menu {

  opacity: 1;

  visibility: visible;

  transform: translateY(0);

}

.dropdown-item a {

  display: block;

  padding: 9px 18px;

  font-size: 13px;

  font-weight: 500;

  color: var(--text-main);

}

.dropdown-item a:hover {

  background-color: var(--bg-subtle);

  color: var(--brand-blue);

  padding-left: 22px;

}



/* Мобильный блок внутри открытого меню */

.mobile-nav-actions {

  display: none;

  padding: 16px;

  background: rgba(0, 0, 0, 0.2);

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  flex-direction: column;

  gap: 10px;

}

.mobile-nav-btn-pos {

  width: 100% !important;

  white-space: normal !important;

  text-align: center !important;

  line-height: 1.35 !important;

  padding: 11px 16px !important;

  font-size: 13.5px !important;

  word-break: normal !important;

  overflow-wrap: break-word !important;

  box-sizing: border-box !important;

}

.mobile-nav-emergency {

  color: #fca5a5;

  font-size: 13px;

  font-weight: 700;

  text-align: center;

  margin-top: 4px;

  display: block;

  line-height: 1.4;

  word-break: normal;

}

.mobile-socials-box {

  display: none;

  padding: 14px 16px;

  background: rgba(0, 0, 0, 0.28);

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  flex-direction: column;

  gap: 8px;

}

.mobile-socials-title {

  font-size: 11.5px;

  color: rgba(255, 255, 255, 0.7);

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.05em;

}

.mobile-socials-links {

  display: flex;

  gap: 10px;

}

.social-pill-btn {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 8px 12px;

  border-radius: var(--radius-sm);

  background: rgba(255, 255, 255, 0.12);

  color: #ffffff;

  font-size: 12.5px;

  font-weight: 600;

  transition: var(--transition);

  flex: 1;

  justify-content: center;

}

.social-pill-btn.vk-pill {

  background: rgba(0, 119, 255, 0.18);

  border: 1px solid rgba(0, 119, 255, 0.35);

}

.social-pill-btn.vk-pill:hover {

  background: #0077ff;

  color: #ffffff;

}

.social-pill-btn.max-pill {

  background: rgba(99, 102, 241, 0.18);

  border: 1px solid rgba(99, 102, 241, 0.35);

}

.social-pill-btn.max-pill:hover {

  background: #6366f1;

  color: #ffffff;

}



/* Социальные ссылки в футере */

.footer-social-btn {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 6px 14px;

  border-radius: var(--radius-sm);

  background: #162235;

  border: 1px solid #27374f;

  color: #e2e8f0;

  font-size: 12.5px;

  font-weight: 600;

  transition: var(--transition);

}

.footer-social-btn.vk-btn:hover {

  background: #0077ff;

  border-color: #0077ff;

  color: #ffffff;

}

.footer-social-btn.max-btn:hover {

  background: #6366f1;

  border-color: #6366f1;

  color: #ffffff;

}



/* ==========================================================================

   Hero-секция (Главный экран)

   ========================================================================== */

.hero-section {

  position: relative;

  background: var(--bg-hero-overlay), url('assets/images/news-boiler.png') center/cover no-repeat;

  color: #ffffff;

  padding: 60px 0 85px;

  overflow: hidden;

}

.hero-content {

  max-width: 820px;

  position: relative;

  z-index: 2;

}

.hero-org-badge {

  display: flex;

  flex-direction: column;

  gap: 3px;

  margin-bottom: 16px;

  padding: 10px 16px;

  background: rgba(15, 23, 42, 0.65);

  border: 1px solid rgba(255, 255, 255, 0.18);

  border-left: 4px solid var(--brand-red);

  border-radius: var(--radius-sm);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

}

.hero-org-type {

  font-size: 11.5px;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: #cbd5e1;

  font-weight: 600;

}

.hero-org-name {

  font-size: 15px;

  font-weight: 800;

  color: #ffffff;

  line-height: 1.35;

  text-transform: uppercase;

  letter-spacing: 0.02em;

  overflow-wrap: break-word;

  word-wrap: break-word;

}

.hero-season-tag {

  display: inline-flex;

  align-items: center;

  gap: 6px;

  background: rgba(185, 51, 51, 0.25);

  border: 1px solid rgba(185, 51, 51, 0.5);

  color: #fecaca;

  padding: 4px 10px;

  border-radius: var(--radius-full);

  font-size: 11.5px;

  font-weight: 600;

  letter-spacing: 0.03em;

  margin-bottom: 18px;

  max-width: 100%;

}

.hero-season-tag .season-dot {

  color: var(--brand-red);

  font-size: 10px;

}

.hero-badge {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: var(--brand-red);

  color: #fff;

  padding: 5px 12px;

  border-radius: var(--radius-full);

  font-size: 12px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  margin-bottom: 18px;

}

.hero-title {

  font-size: 36px;

  font-weight: 800;

  line-height: 1.25;

  margin-bottom: 18px;

  letter-spacing: -0.01em;

  color: #ffffff;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);

  overflow-wrap: break-word;

  word-wrap: break-word;

}

.hero-desc {

  font-size: 16px;

  color: rgba(255, 255, 255, 0.92);

  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);

  margin-bottom: 28px;

  line-height: 1.6;

  overflow-wrap: break-word;

  word-wrap: break-word;

}

.hero-buttons {

  display: flex;

  gap: 14px;

  flex-wrap: wrap;

}



/* ==========================================================================

   Универсальные ключевые показатели (Статистика)

   ========================================================================== */

.stats-section {

  margin-top: -45px;

  position: relative;

  z-index: 10;

  margin-bottom: 50px;

}

.stats-grid {

  display: grid;

  background: var(--bg-surface);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow-lg);

  border: 1px solid var(--border-color);

  overflow: hidden;

  transition: background-color var(--transition);

}

.stats-grid-cols-1 { grid-template-columns: 1fr; }

.stats-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }

.stats-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

.stats-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.stats-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

.stats-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }



.stat-card {

  padding: 22px 16px;

  text-align: center;

  border-right: 1px solid var(--border-color);

  position: relative;

  transition: transform var(--transition);

}

.stat-card:last-child {

  border-right: none;

}

.stat-card:hover {

  background-color: var(--bg-subtle);

}

.stat-card::before {

  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 3px;

  background: transparent;

  transition: var(--transition);

}

.stat-card:hover::before {

  background: var(--brand-red);

}

.stat-number {

  font-size: 28px;

  font-weight: 800;

  color: var(--brand-blue);

  line-height: 1.15;

  display: block;

  transition: color var(--transition);

  word-wrap: break-word;

}

.stat-card:hover .stat-number {

  color: var(--brand-red);

}

.stat-label {

  font-size: 12.5px;

  color: var(--text-muted);

  margin-top: 8px;

  line-height: 1.35;

  font-weight: 500;

  word-wrap: break-word;

}



/* ==========================================================================

   Секции контента: заголовки и структура

   ========================================================================== */

.section-padding {

  padding-top: 50px;

  padding-bottom: 50px;

}

.content-section {

  padding-top: 40px;

  padding-bottom: 50px;

}

.section-header {

  margin-bottom: 30px;

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  flex-wrap: wrap;

  gap: 16px;

}

.section-header-title-box {

  min-width: 0;

  flex: 1 1 300px;

}

.section-title {

  font-size: 28px;

  font-weight: 800;

  color: var(--text-main);

  line-height: 1.25;

  margin-bottom: 8px;

  word-wrap: break-word;

  overflow-wrap: break-word;

}

.section-subtitle {

  font-size: 14px;

  font-weight: 500;

  color: var(--text-muted);

  line-height: 1.5;

  margin-bottom: 0;

  display: block;

  word-wrap: break-word;

  overflow-wrap: break-word;

}

.section-subtitle::before {

  content: "▲";

  color: var(--brand-red);

  font-size: 9px;

  margin-right: 6px;

  display: inline-block;

  vertical-align: 1px;

}



/* Секция контента страницы на главной */

.front-page-content-section {

  background: var(--bg-surface);

  border-radius: var(--radius-md);

  border: 1px solid var(--border-color);

  padding: 32px;

  box-shadow: var(--shadow-sm);

}



/* ==========================================================================

   Новости и публикации (Пресс-центр)

   ========================================================================== */

.news-grid {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;

}

.news-card {

  background: var(--bg-surface);

  border: 1px solid var(--border-color);

  border-radius: var(--radius-md);

  overflow: hidden;

  display: flex;

  flex-direction: column;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);

}

.news-card:hover {

  transform: translateY(-3px);

  box-shadow: var(--shadow-lg);

}

.news-thumb-wrapper,

.news-img-wrap {

  width: 100%;

  aspect-ratio: 16 / 10;

  height: auto;

  min-height: 160px;

  max-height: 200px;

  overflow: hidden;

  position: relative;

  background-color: var(--bg-subtle);

  display: block;

}

.news-thumb,

.news-img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center top;

  display: block;

  transition: transform 0.4s ease;

}

.news-card:hover .news-thumb,

.news-card:hover .news-img {

  transform: scale(1.05);

}

.news-badge {

  position: absolute;

  top: 12px;

  left: 12px;

  background: rgba(15, 23, 42, 0.85);

  color: #fff;

  font-size: 11px;

  font-weight: 600;

  padding: 3px 9px;

  border-radius: var(--radius-sm);

  backdrop-filter: blur(4px);

  z-index: 2;

}

.news-body {

  padding: 18px;

  display: flex;

  flex-direction: column;

  flex-grow: 1;

}

.news-date {

  font-size: 12px;

  color: var(--text-muted);

  margin-bottom: 8px;

  display: flex;

  align-items: center;

  gap: 5px;

}

.news-title {

  font-size: 16px;

  font-weight: 700;

  color: var(--text-main);

  line-height: 1.38;

  margin-bottom: 10px;

  word-wrap: break-word;

  overflow-wrap: break-word;

}

.news-card:hover .news-title {

  color: var(--brand-blue);

}

.news-excerpt {

  font-size: 13.5px;

  color: var(--text-muted);

  line-height: 1.55;

  margin-bottom: 14px;

  flex-grow: 1;

  word-wrap: break-word;

  overflow-wrap: break-word;

}

.news-link {

  font-size: 13.5px;

  font-weight: 600;

  color: var(--brand-blue);

  display: inline-flex;

  align-items: center;

  gap: 5px;

}

.news-card:hover .news-link {

  color: var(--brand-red);

}



/* ==========================================================================

   Интерактивный промо-блок (ПОС / Обратная связь / Виджет)

   ========================================================================== */

.pos-section {

  background: linear-gradient(135deg, #134b8c 0%, #0a2d59 100%);

  color: #fff;

  border-radius: var(--radius-lg);

  padding: 36px;

  margin: 36px 0;

  box-shadow: var(--shadow-md);

  position: relative;

  overflow: hidden;

}

.pos-section::after {

  content: "";

  position: absolute;

  right: -80px;

  top: -80px;

  width: 300px;

  height: 300px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.04);

  pointer-events: none;

}

.pos-inner {

  display: grid;

  grid-template-columns: 1.3fr 1fr;

  gap: 32px;

  align-items: center;

  position: relative;

  z-index: 2;

}

.pos-badge, .pos-tag {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  background: rgba(255, 255, 255, 0.15);

  padding: 5px 12px;

  border-radius: var(--radius-full);

  font-size: 12px;

  font-weight: 600;

  margin-bottom: 14px;

  max-width: 100%;

  white-space: normal;

  line-height: 1.3;

}

.pos-title {

  font-size: 24px;

  font-weight: 800;

  line-height: 1.28;

  margin-bottom: 12px;

  color: #ffffff;

  word-wrap: break-word;

  overflow-wrap: break-word;

}

.pos-desc, .pos-text {

  font-size: 14.5px;

  color: rgba(255, 255, 255, 0.9);

  line-height: 1.6;

  margin-bottom: 0;

  word-wrap: break-word;

  overflow-wrap: break-word;

}

.pos-action-col {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

}

.btn-pos {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  background: #ffffff;

  color: var(--brand-blue);

  padding: 13px 22px;

  border-radius: var(--radius-md);

  font-weight: 700;

  font-size: 14.5px;

  width: 100%;

  max-width: 320px;

  text-align: center;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);

  transition: var(--transition);

  white-space: normal;

  line-height: 1.3;

  box-sizing: border-box;

}

.btn-pos:hover {

  background: var(--brand-red);

  color: #ffffff;

  transform: translateY(-2px);

}

.pos-notice {

  margin-top: 10px;

  font-size: 11.5px;

  opacity: 0.85;

  text-align: center;

  line-height: 1.35;

  color: rgba(255, 255, 255, 0.85);

}

.pos-embed-widget {

  width: 100%;

  max-width: 100%;

  overflow: hidden;

}



/* ==========================================================================

   Инфо-блоки и полезные сервисы (Баннеры / Виджеты)

   ========================================================================== */

.banners-section {

  background: var(--bg-surface);

  border-top: 1px solid var(--border-color);

  border-bottom: 1px solid var(--border-color);

  padding: 36px 0;

  transition: background-color var(--transition);

}

.banners-grid {

  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 18px;

}

.banner-card {

  background: var(--bg-subtle);

  border: 1px solid var(--border-color);

  border-radius: var(--radius-md);

  padding: 16px 14px;

  display: flex;

  flex-direction: column;

  align-items: center;

  text-align: center;

  transition: var(--transition);

  text-decoration: none;

  min-height: 140px;

  justify-content: center;

}

.banner-card:hover {

  background: var(--bg-surface);

  border-color: var(--brand-blue);

  transform: translateY(-2px);

  box-shadow: var(--shadow-md);

}

.banner-img-wrap {

  width: 100%;

  height: 80px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 10px;

  overflow: hidden;

  border-radius: var(--radius-sm);

}

.banner-img {

  max-height: 75px;

  max-width: 90%;

  object-fit: contain;

}

.banner-fallback-icon {

  font-size: 32px;

  line-height: 1;

}

.banner-name {

  font-size: 13.5px;

  font-weight: 700;

  color: var(--text-main);

  line-height: 1.3;

}

.banner-badge-external {

  font-size: 11px;

  color: var(--text-muted);

  margin-top: 4px;

}



/* Карточка с произвольным HTML/JS кодом виджета */

.banner-card-embed {

  text-align: left;

  align-items: stretch;

  justify-content: flex-start;

  padding: 14px;

  background: var(--bg-surface);

}

.banner-embed-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 8px;

  gap: 6px;

  border-bottom: 1px solid var(--border-color);

  padding-bottom: 6px;

}

.banner-embed-content {

  width: 100%;

  overflow: hidden;

}



/* ==========================================================================

   Услуги предприятия (Каталог)

   ========================================================================== */

.services-section {

  padding: 50px 0 60px;

}

.services-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 22px;

}

.service-card {

  background: var(--bg-surface);

  border: 1px solid var(--border-color);

  border-radius: var(--radius-md);

  padding: 26px;

  display: flex;

  flex-direction: column;

  transition: var(--transition);

  position: relative;

  box-shadow: var(--shadow-sm);

}

.service-card:hover {

  transform: translateY(-3px);

  box-shadow: var(--shadow-lg);

  border-color: var(--brand-blue);

}

.service-card-featured {

  border-top: 3px solid var(--brand-red);

}

.service-icon-box {

  width: 50px;

  height: 50px;

  border-radius: var(--radius-md);

  background: var(--brand-blue-light);

  color: var(--brand-blue);

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 22px;

  margin-bottom: 18px;

}

.service-card:hover .service-icon-box {

  background: var(--brand-blue);

  color: #fff;

}

.service-name {

  font-size: 18px;

  font-weight: 700;

  color: var(--text-main);

  margin-bottom: 10px;

  line-height: 1.3;

}

.service-desc {

  font-size: 13.5px;

  color: var(--text-muted);

  line-height: 1.6;

  margin-bottom: 18px;

  flex-grow: 1;

}

.service-link {

  font-size: 13.5px;

  font-weight: 600;

  color: var(--brand-blue);

  display: inline-flex;

  align-items: center;

  gap: 5px;

}

.service-card:hover .service-link {

  color: var(--brand-red);

}



/* ==========================================================================

   Шаблоны страниц и архивов: заголовки и структура

   ========================================================================== */

.archive-section, .page-section, .single-post-section, .search-section {

  padding-top: 40px;

  padding-bottom: 70px;

}

.single-post-section {

  max-width: 900px;

}

.archive-header, .entry-header {

  margin-bottom: 28px;

}

.archive-title, .entry-title {

  font-size: 30px;

  font-weight: 800;

  color: var(--text-main);

  line-height: 1.28;

  margin-bottom: 10px;

  word-wrap: break-word;

  overflow-wrap: break-word;

}

.archive-description {

  color: var(--text-muted);

  font-size: 14.5px;

  line-height: 1.55;

}

.entry-meta-top {

  display: flex;

  gap: 12px;

  align-items: center;

  margin-bottom: 12px;

  flex-wrap: wrap;

}

.news-badge-category {

  background: var(--brand-blue);

  color: #fff;

  padding: 2px 8px;

  border-radius: 4px;

  font-size: 11px;

  font-weight: 700;

}

.post-featured-image {

  margin-bottom: 28px;

  border-radius: var(--radius-md);

  overflow: hidden;

  box-shadow: var(--shadow-sm);

}

.post-featured-image img {

  width: 100%;

  height: auto;

  display: block;

}

.entry-footer {

  margin-top: 40px;

  padding-top: 20px;

  border-top: 1px solid var(--border-color);

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 14px;

}

.search-query-word {

  color: var(--brand-blue);

}

.search-no-results {

  padding: 40px 0;

  text-align: center;

  max-width: 600px;

  margin: 0 auto;

}

.search-no-results-text {

  font-size: 16px;

  color: var(--text-muted);

  margin-bottom: 22px;

  line-height: 1.6;

}

.not-found-section {

  padding: 70px 20px;

  text-align: center;

  max-width: 680px;

  margin: 0 auto;

}

.not-found-code {

  font-size: 80px;

  font-weight: 900;

  color: var(--brand-blue);

  line-height: 1;

  margin-bottom: 16px;

  letter-spacing: -2px;

}

.not-found-title {

  font-size: 26px;

  margin-bottom: 14px;

}

.not-found-desc {

  font-size: 15.5px;

  color: var(--text-muted);

  margin-bottom: 28px;

  line-height: 1.6;

}

.not-found-btn {

  display: inline-flex;

}



/* ==========================================================================

   Подвал сайта (Footer)

   ========================================================================== */

.site-footer {

  background-color: #0b1120;

  color: #94a3b8;

  padding: 50px 0 25px;

  font-size: 13px;

  border-top: 3px solid var(--brand-red);

}

.footer-top {

  display: grid;

  grid-template-columns: 1.8fr 1.2fr 1.2fr 1.3fr;

  gap: 36px;

  margin-bottom: 36px;

}

.footer-top.has-3-cols {

  grid-template-columns: 2fr 1.4fr 1.4fr;

}

.footer-logo-title {

  color: #ffffff;

  font-size: 15px;

  font-weight: 800;

  text-transform: uppercase;

  margin-bottom: 12px;

}

.footer-text {

  line-height: 1.6;

  margin-bottom: 16px;

}

.footer-heading {

  color: #ffffff;

  font-size: 13.5px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.05em;

  margin-bottom: 14px;

  position: relative;

  padding-bottom: 8px;

}

.footer-heading::after {

  content: "";

  position: absolute;

  bottom: 0;

  left: 0;

  width: 24px;

  height: 2px;

  background: var(--brand-blue);

}

.footer-links {

  list-style: none;

  display: flex;

  flex-direction: column;

  gap: 9px;

}

.footer-links a:hover {

  color: #ffffff;

  padding-left: 4px;

}

.footer-contacts-list {

  list-style: none;

  display: flex;

  flex-direction: column;

  gap: 12px;

}

.footer-contacts-list a {

  transition: color var(--transition-fast), opacity var(--transition-fast);

}

.footer-contacts-list a:hover {

  color: #ffffff !important;

  text-decoration: underline;

}

.footer-contact-item {

  display: flex;

  align-items: flex-start;

  gap: 10px;

}

.footer-bottom {

  padding-top: 25px;

  border-top: 1px solid #1e293b;

  display: flex;

  justify-content: space-between;

  align-items: center;

  flex-wrap: wrap;

  gap: 14px;

  font-size: 12px;

}



/* ==========================================================================

   Адаптивность (Mobile Media Queries)

   ========================================================================== */

@media (max-width: 1024px) {

  .container {

    padding-left: 24px;

    padding-right: 24px;

  }

  .stats-grid-cols-4, .stats-grid-cols-5, .stats-grid-cols-6 {

    grid-template-columns: repeat(3, 1fr) !important;

  }

  .stat-card {

    border-right: 1px solid var(--border-color);

    border-bottom: 1px solid var(--border-color);

  }

  .services-grid, .news-grid {

    grid-template-columns: repeat(2, 1fr);

  }

  .banners-grid {

    grid-template-columns: repeat(2, 1fr);

  }

  .footer-top {

    grid-template-columns: 1fr 1fr;

  }

}



@media (max-width: 860px) {

  .container {

    padding-left: 20px;

    padding-right: 20px;

  }

  .stats-grid-cols-3, .stats-grid-cols-4, .stats-grid-cols-5, .stats-grid-cols-6 {

    grid-template-columns: repeat(2, 1fr) !important;

  }



  /* Кнопки на планшетах и мобильных */

  .btn {

    white-space: normal;

    text-align: center;

    line-height: 1.35;

  }



  /* В шапке на мобильных скрываем длинный текст */

  .logo-text {

    display: none !important;

  }

  .logo-block {

    gap: 0;

  }

  .logo-img {

    width: 48px;

    height: 36px;

  }



  /* Прячем десктопные элементы */

  .desktop-only {

    display: none !important;

  }

  .mobile-btn-phone, .mobile-btn-theme, .mobile-toggle {

    display: flex;

  }

  .topbar {

    display: none;

  }

  .nav-bar {

    display: none;

  }

  .nav-bar.is-open {

    display: block;

    position: static;

  }

  .nav-list {

    flex-direction: column;

    padding: 6px 0;

  }

  .nav-item {

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  }

  .nav-link-wrap {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

  }

  .nav-link {

    flex-grow: 1;

    padding: 12px 14px;

    font-size: 14px;

  }



  /* Кнопка-шеврон раскрытия аккордеона на мобильных */

  .dropdown-toggle {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 44px;

    height: 44px;

    background: transparent;

    border: none;

    color: #ffffff;

    cursor: pointer;

    flex-shrink: 0;

  }

  .dropdown-toggle .chevron-icon {

    transition: transform 0.25s ease;

  }

  .nav-item.submenu-open .dropdown-toggle .chevron-icon {

    transform: rotate(180deg);

  }



  /* Подменю свернуты по умолчанию на мобильных */

  .dropdown-menu {

    display: none;

    position: static;

    opacity: 1;

    visibility: visible;

    transform: none;

    box-shadow: none;

    background: rgba(0, 0, 0, 0.18);

    border: none;

    padding: 2px 0 6px 0;

    border-radius: 0;

  }

  .nav-item.submenu-open .dropdown-menu {

    display: block;

    animation: fadeInMenu 0.2s ease;

  }

  .dropdown-item a {

    color: #e2e8f0;

    padding: 9px 16px 9px 28px;

    font-size: 13px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.04);

  }

  .dropdown-item a:hover {

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;

    padding-left: 32px;

  }



  /* Действия и соцсети в мобильном меню */

  .mobile-nav-actions {

    display: flex;

  }

  .mobile-socials-box {

    display: flex;

  }



  /* Заголовки разделов на экранах <= 860px */

  .section-header {

    margin-bottom: 24px;

  }

  .section-title {

    font-size: 24px;

    margin-bottom: 6px;

  }

  .section-subtitle {

    font-size: 13.5px;

  }

  .archive-title, .entry-title {

    font-size: 24px;

    margin-bottom: 8px;

  }



  /* Секция ПОС на экранах <= 860px */

  .pos-inner {

    grid-template-columns: 1fr;

    gap: 24px;

    text-align: left;

  }

  .pos-action-col {

    align-items: stretch;

  }

  .btn-pos {

    max-width: 100%;

  }

}



@keyframes fadeInMenu {

  from { opacity: 0; transform: translateY(-4px); }

  to { opacity: 1; transform: translateY(0); }

}



@media (max-width: 600px) {

  .container {

    padding-left: 14px;

    padding-right: 14px;

  }

  .logo-img {

    width: 44px;

    height: 32px;

  }

  .hero-org-badge {

    padding: 8px 12px;

    margin-bottom: 12px;

  }

  .hero-org-type {

    font-size: 10px;

  }

  .hero-org-name {

    font-size: 13px;

    line-height: 1.3;

  }

  .hero-section {

    padding: 35px 0 50px;

  }

  .hero-title {

    font-size: 22px;

    line-height: 1.28;

    margin-bottom: 14px;

  }

  .hero-desc {

    font-size: 14px;

    margin-bottom: 20px;

  }

  .hero-buttons .btn {

    width: 100%;

  }

  .stats-section {

    margin-top: -30px;

    margin-bottom: 35px;

  }

  .stats-grid {

    grid-template-columns: 1fr !important;

  }

  .stat-card {

    border-right: none;

    border-bottom: 1px solid var(--border-color);

    padding: 14px 12px;

  }

  .stat-card:last-child {

    border-bottom: none;

  }

  .stat-number {

    font-size: 24px;

  }

  .stat-label {

    font-size: 12px;

    margin-top: 4px;

  }



  /* Заголовки разделов на мобильных */

  .section-header {

    margin-bottom: 18px;

  }

  .section-title {

    font-size: 20px;

    line-height: 1.3;

    margin-bottom: 6px;

  }

  .section-subtitle {

    font-size: 13px;

    line-height: 1.45;

  }



  /* Страницы, архивы, статьи на мобильных */

  .archive-section, .page-section, .single-post-section, .search-section {

    padding-top: 25px;

    padding-bottom: 45px;

  }

  .archive-header, .entry-header {

    margin-bottom: 20px;

  }

  .archive-title, .entry-title {

    font-size: 20px;

    line-height: 1.3;

    margin-bottom: 8px;

  }

  .not-found-code {

    font-size: 60px;

  }

  .not-found-title {

    font-size: 22px;

  }



  /* Карточки новостей на мобильных */

  .services-grid, .news-grid {

    grid-template-columns: 1fr;

    gap: 16px;

  }

  .news-body {

    padding: 16px 14px;

  }

  .news-title {

    font-size: 15.5px;

    line-height: 1.35;

    margin-bottom: 6px;

  }

  .news-excerpt {

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 12px;

  }



  /* Секция ПОС на мобильных */

  .pos-section {

    padding: 22px 16px;

    margin: 28px 0;

  }

  .pos-title {

    font-size: 20px;

    line-height: 1.3;

    margin-bottom: 10px;

  }

  .pos-desc {

    font-size: 13.5px;

    line-height: 1.5;

    margin-bottom: 16px;

  }

  .btn-pos {

    padding: 12px 16px;

    font-size: 14px;

  }



  /* Баннеры и подвал */

  .banners-grid {

    grid-template-columns: 1fr;

    gap: 12px;

  }

  .footer-top {

    grid-template-columns: 1fr;

    gap: 26px;

  }

  .footer-bottom {

    flex-direction: column;

    text-align: center;

    gap: 10px;

  }

}



@media (max-width: 480px) {

  .header-inner {

    gap: 8px;

  }

  .header-actions {

    gap: 6px;

  }

  .mobile-btn-phone, .mobile-btn-theme, .mobile-toggle {

    width: 34px;

    height: 34px;

  }

  .hero-title {

    font-size: 20px;

    line-height: 1.28;

  }

  .section-title {

    font-size: 19px;

    line-height: 1.3;

  }

  .archive-title, .entry-title {

    font-size: 19px;

    line-height: 1.3;

  }

}



/* ==========================================================================

   Пагинация записей (WordPress Pagination)

   ========================================================================== */

.pagination {

  margin: 40px 0 20px;

  text-align: center;

}

.pagination .nav-links {

  display: inline-flex;

  gap: 6px;

  flex-wrap: wrap;

  justify-content: center;

}

.pagination .page-numbers {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 38px;

  height: 38px;

  padding: 0 14px;

  border-radius: var(--radius-sm);

  background: var(--bg-surface);

  border: 1px solid var(--border-color);

  color: var(--text-main);

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  transition: var(--transition);

}

.pagination .page-numbers:hover,

.pagination .page-numbers.current {

  background: var(--brand-blue);

  color: #ffffff;

  border-color: var(--brand-blue);

}

.pagination .page-numbers.dots {

  background: transparent;

  border-color: transparent;

  color: var(--text-muted);

}



/* ==========================================================================

   Типографика контента записей и страниц (Gutenberg / WYSIWYG)

   ========================================================================== */

.entry-content {

  color: var(--text-main);

  line-height: 1.8;

  font-size: 16px;

}

.entry-content p {

  margin-bottom: 1.25em;

}

.entry-content h2 {

  font-size: 24px;

  margin-top: 1.6em;

  margin-bottom: 0.8em;

  color: var(--text-main);

  font-weight: 700;

  line-height: 1.3;

}

.entry-content h3 {

  font-size: 20px;

  margin-top: 1.4em;

  margin-bottom: 0.7em;

  color: var(--text-main);

  font-weight: 700;

  line-height: 1.35;

}

.entry-content h4 {

  font-size: 18px;

  margin-top: 1.2em;

  margin-bottom: 0.6em;

  color: var(--text-main);

  font-weight: 600;

  line-height: 1.4;

}

.entry-content ul, .entry-content ol {

  margin-bottom: 1.3em;

  padding-left: 1.6em;

}

.entry-content li {

  margin-bottom: 0.45em;

}

.entry-content a {

  color: var(--brand-blue);

  text-decoration: underline;

  text-underline-offset: 3px;

}

.entry-content a:hover {

  color: var(--brand-red);

}

.entry-content blockquote {

  border-left: 4px solid var(--brand-blue);

  padding: 12px 20px;

  margin: 1.5em 0;

  background: var(--bg-subtle);

  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;

  font-style: italic;

  color: var(--text-muted);

}

.entry-content img {

  max-width: 100%;

  height: auto;

  border-radius: var(--radius-sm);

  display: block;

}

.entry-content table {

  width: 100%;

  border-collapse: collapse;

  margin-bottom: 1.6em;

  font-size: 14.5px;

}

.entry-content table th,

.entry-content table td {

  padding: 10px 14px;

  border: 1px solid var(--border-color);

  text-align: left;

}

.entry-content table th {

  background: var(--bg-subtle);

  font-weight: 700;

}



/* ==========================================================================

   Дополнительные контрастные стили для BVI (ГОСТ Р 52872)

   ========================================================================== */

body.bvi-active .site-header {

  border-bottom: 3px solid #000000 !important;

}

body.bvi-active .topbar,

body.bvi-active .nav-bar,

body.bvi-active .site-footer {

  background: #000000 !important;

  color: #ffffff !important;

}

body.bvi-active .nav-link,

body.bvi-active .topbar-btn,

body.bvi-active .footer-links a {

  color: #ffffff !important;

  text-decoration: underline !important;

}

body.bvi-active .btn {

  border: 2px solid #000000 !important;

  background: #ffffff !important;

  color: #000000 !important;

  font-weight: 800 !important;

}

body.bvi-active .card,

body.bvi-active .stat-card,

body.bvi-active .news-card,

body.bvi-active .banner-card,

body.bvi-active .service-card {

  border: 2px solid #000000 !important;

  box-shadow: none !important;

}



/* ==========================================================================

   Хлебные крошки (Breadcrumbs)

   ========================================================================== */

.breadcrumbs {

  margin-bottom: 24px;

  font-size: 13.5px;

  color: var(--text-muted);

}

.breadcrumbs-list {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  list-style: none;

  padding: 0;

  margin: 0;

  gap: 8px;

}

.breadcrumbs-item a {

  color: var(--text-muted);

  text-decoration: none;

  transition: color 0.2s ease;

}

.breadcrumbs-item a:hover {

  color: var(--brand-blue);

  text-decoration: underline;

}

.breadcrumbs-separator {

  color: var(--text-light);

  user-select: none;

}

.breadcrumbs-item.active {

  color: var(--text-main);

  font-weight: 600;

}



/* ==========================================================================

   Одиночная статья новости (Single Post)

   ========================================================================== */

.single-post-section {

  padding-top: 24px;

  padding-bottom: 60px;

}

.single-article {

  background: var(--bg-surface);

  border: 1px solid var(--border-color);

  border-radius: var(--radius-md);

  padding: 36px 40px;

  box-shadow: var(--shadow-sm);

  margin-bottom: 48px;

}

.entry-meta-top {

  display: flex;

  align-items: center;

  gap: 14px;

  margin-bottom: 16px;

  font-size: 13.5px;

  color: var(--text-muted);

}

.news-badge-category {

  display: inline-block;

  padding: 3px 10px;

  background: var(--brand-blue-light);

  color: var(--brand-blue);

  border-radius: var(--radius-full);

  font-size: 12px;

  font-weight: 700;

}

.single-article .entry-title {

  font-size: 30px;

  line-height: 1.3;

  margin-bottom: 24px;

  color: var(--text-main);

}

.post-featured-image {

  margin-bottom: 28px;

  border-radius: var(--radius-md);

  overflow: hidden;

}

.post-featured-image img {

  width: 100%;

  height: auto;

  display: block;

}

.entry-footer {

  margin-top: 36px;

  padding-top: 24px;

  border-top: 1px solid var(--border-color);

}

.entry-footer-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  justify-content: space-between;

  align-items: center;

}

.btn-print-page {

  font-size: 13px;

  padding: 8px 16px;

  cursor: pointer;

}

.related-posts-section {

  margin-top: 48px;

}



/* Адаптивность для одиночной статьи */

@media (max-width: 992px) {

  .single-article {

    padding: 24px 20px;

  }

}



/* ==========================================================================

   Стили для печати (Print Styles)

   ========================================================================== */

/* ==========================================================================
   Адаптивная фотогалерея для записей (VK Importer & Gutenberg)
   ========================================================================== */
.krkk-vk-gallery,
.wp-block-gallery.krkk-vk-gallery {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  margin: 28px 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.krkk-vk-gallery .wp-block-image,
.krkk-vk-gallery .krkk-gallery-item,
.krkk-vk-gallery figure {
  margin: 0 !important;
  border-radius: var(--radius-md, 8px) !important;
  overflow: hidden !important;
  background: var(--bg-subtle, #f1f5f9);
  box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.05)) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.krkk-vk-gallery .wp-block-image:hover,
.krkk-vk-gallery .krkk-gallery-item:hover,
.krkk-vk-gallery figure:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 6px 16px rgba(0, 0, 0, 0.1)) !important;
}

.krkk-vk-gallery img {
  width: 100% !important;
  height: 260px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: var(--radius-md, 8px) !important;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06)) !important;
}

@media (max-width: 640px) {
  .krkk-vk-gallery,
  .wp-block-gallery.krkk-vk-gallery {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .krkk-vk-gallery img {
    height: 210px !important;
  }
}

@media print {

  .site-header,

  .site-footer,

  .topbar,

  .nav-bar,

  .breadcrumbs,

  .entry-footer,

  .related-posts-section,

  .btn-print-page {

    display: none !important;

  }

  body {

    background: #ffffff !important;

    color: #000000 !important;

  }

  .single-article {

    box-shadow: none !important;

    border: none !important;

    padding: 0 !important;

  }

}
/* ==========================================================================
   ГЛОБАЛЬНАЯ СЕКЦИЯ ГОСУСЛУГ (ПОС) И АДАПТИВНОСТЬ
   ========================================================================== */
.pos-global-section {
  margin-top: 24px;
  margin-bottom: 36px;
}

/* Переключение длинного текста кнопки Hero на мобильных */
.phone-btn-mobile {
  display: none !important;
}

.phone-text-desktop {
  display: inline;
}

@media (max-width: 640px) {
  .phone-text-desktop {
    display: none !important;
  }

  .phone-btn-mobile {
    display: inline !important;
  }
}

/* ==========================================================================
   АДАПТИВНЫЙ ЛАЙТБОКС ДЛЯ ИЗОБРАЖЕНИЙ СТАТЕЙ И ГАЛЕРЕЙ
   ========================================================================== */
.post-featured-image a {
  display: block;
  cursor: zoom-in;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}

.krkk-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.krkk-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.krkk-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.krkk-lightbox-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 95vh;
  user-select: none;
}

.krkk-lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 85vh;
}

.krkk-lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65);
  animation: krkkLightboxZoom 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes krkkLightboxZoom {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.krkk-lightbox-caption-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  max-width: 80vw;
  text-align: center;
  backdrop-filter: blur(4px);
}

.krkk-lightbox-counter {
  font-weight: 700;
  color: #38bdf8;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.krkk-lightbox-caption {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.krkk-lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  outline: none;
  padding: 0;
}

.krkk-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.krkk-lightbox-btn:active {
  transform: scale(0.96);
}

.krkk-lightbox-close {
  top: -60px;
  right: 0;
}

.krkk-lightbox-prev {
  left: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.krkk-lightbox-prev:hover {
  transform: translateY(-50%) scale(1.08);
}

.krkk-lightbox-next {
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
}

.krkk-lightbox-next:hover {
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {
  .krkk-lightbox-close {
    top: -50px;
    right: 10px;
    width: 42px;
    height: 42px;
  }

  .krkk-lightbox-prev {
    left: 10px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
  }

  .krkk-lightbox-next {
    right: 10px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
  }

  .krkk-lightbox-img {
    max-width: 95vw;
    max-height: 75vh;
  }

  .krkk-lightbox-caption-bar {
    max-width: 90vw;
    font-size: 12px;
  }
}

/* Доступность (ГОСТ Р 52872): скрытые элементы для скринридеров и ссылка быстрого перехода */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  background-color: var(--brand-blue, #185294);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  clip: auto !important;
  clip-path: none;
  color: #ffffff;
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 12px;
  line-height: normal;
  padding: 12px 18px;
  text-decoration: none;
  top: 12px;
  width: auto;
  z-index: 1000000;
}
