@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #DC2626;
  --primary-hover: #B91C1C;
  --text: #0F172A;
  --text-muted: #64748B;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --font-main: 'Golos Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.25;
  font-weight: 800;
}

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* Topbar */
.rc-topbar {
  background: #0F172A;
  color: #94A3B8;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 2px solid var(--primary);
}
.rc-topbar-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.rc-topbar-legal { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rc-tag {
  background: var(--primary); color: #FFF; font-weight: 800; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; font-size: 10px; letter-spacing: 0.05em;
}
.rc-topbar-legal .sep { color: #475569; }
.rc-topbar-contacts { display: flex; align-items: center; gap: 16px; }
.rc-topbar-contacts a { color: #CBD5E1; text-decoration: none; font-weight: 600; transition: color 0.15s; }
.rc-topbar-contacts a:hover { color: #FFFFFF; }
.rc-phone { color: #FFFFFF !important; font-weight: 700 !important; }

/* Header & Flat Navigation with Outline Icons */
.rc-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.rc-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 6px 0; gap: 16px; }
.rc-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.rc-logo { height: 44px; width: auto; }
.rc-brand-text { display: flex; flex-direction: column; }
.rc-brand-title { font-size: 19px; font-weight: 900; color: #0F172A; letter-spacing: 0.02em; white-space: nowrap; line-height: 1.15; }
.rc-brand-subtitle { font-size: 10.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 0.05em; white-space: nowrap; margin-top: 2px; }

/* Flat Nav */
.rc-nav { flex-grow: 1; display: flex; justify-content: center; }
.rc-nav .rc-nav-list {
  display: flex; align-items: center; list-style: none; gap: 2px; flex-wrap: nowrap;
}
.rc-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 13px; border-radius: var(--radius-sm); transition: all 0.15s ease; white-space: nowrap; }
.rc-icon {
  width: 16px; height: 16px; stroke: #64748B; flex-shrink: 0;
  transition: stroke 0.15s ease;
}
.rc-nav-link:hover {
  color: var(--primary); background: #FEF2F2;
}
.rc-nav-link:hover .rc-icon {
  stroke: var(--primary);
}

.btn-rc-red {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #FFF !important; padding: 10px 20px;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 800; font-size: 13px;
  letter-spacing: 0.03em; text-transform: uppercase; transition: background 0.15s;
  border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.btn-rc-red:hover { background: var(--primary-hover); }

/* Монументальный Hero-баннер Красного Креста */
.rc-hero-monument {
  position: relative; background: #0F172A; color: #FFF;
  padding: 70px 0 95px; overflow: hidden;
  border-bottom: 4px solid var(--primary);
}
.rc-hero-bg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, rgba(15,23,42,0.96) 0%, rgba(15,23,42,0.85) 60%, rgba(15,23,42,0.7) 100%),
              url('/assets/images/news_3k2ru55yp1.jpg') center/cover no-repeat;
  opacity: 0.85;
}
.rc-hero-content {
  position: relative; z-index: 2; max-width: 840px;
}
.rc-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(220, 38, 38, 0.2); border: 1px solid rgba(220, 38, 38, 0.4);
  color: #FCA5A5; padding: 5px 12px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.rc-hero-h1 {
  font-size: 42px; font-weight: 900; line-height: 1.15; color: #FFFFFF;
  margin-bottom: 20px; letter-spacing: -0.02em;
}
.rc-hero-lead {
  font-size: 17px; line-height: 1.65; color: #CBD5E1; margin-bottom: 30px;
}
.rc-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-rc-outline-white {
  display: inline-flex; align-items: center; padding: 11px 22px;
  background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; font-size: 13.5px;
  transition: all 0.15s;
}
.btn-rc-outline-white:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.1); }

/* 3 колонки оперативного реагирования под Hero (Red Cross signature) */
.rc-response-columns {
  margin-top: -50px; position: relative; z-index: 10; margin-bottom: 60px;
}
.rc-columns-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.rc-col-card {
  background: #FFFFFF; border: 1px solid var(--border); border-top: 4px solid var(--primary);
  border-radius: var(--radius-sm); padding: 26px; box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.rc-col-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.1); }
.rc-col-num { font-size: 12px; font-weight: 900; color: var(--primary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.rc-col-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: #0F172A; }
.rc-col-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; flex-grow: 1; }
.rc-col-link { font-size: 13px; font-weight: 800; color: var(--primary); text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; }

/* Реестровый список программ */
.rc-registry-section { padding: 40px 0 70px; background: #FFFFFF; }
.rc-section-header { margin-bottom: 36px; border-bottom: 2px solid var(--text); padding-bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; }
.rc-section-title { font-size: 28px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.rc-section-sub { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

.rc-registry-list { display: flex; flex-direction: column; gap: 16px; }
.rc-registry-row {
  display: grid; grid-template-columns: 80px 240px 1fr 200px; gap: 24px; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 20px 24px; transition: border-color 0.15s, background 0.15s;
}
.rc-registry-row:hover { border-color: var(--primary); background: #FFF; }
.rc-row-index { font-size: 24px; font-weight: 900; color: var(--primary); font-variant-numeric: tabular-nums; }
.rc-row-name { font-size: 17px; font-weight: 800; color: #0F172A; }
.rc-row-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.rc-row-action { text-align: right; }

/* Партнеры */
.rc-partners-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; align-items: center;
}
.rc-partner-item {
  background: #FFF; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 20px; display: flex; align-items: center; justify-content: center; min-height: 80px;
}
.rc-partner-item img { max-height: 44px; max-width: 100%; object-fit: contain; }

/* Подвал */
.rc-footer {
  background: #0F172A; color: #CBD5E1; padding: 60px 0 24px; font-size: 13.5px;
}
.rc-footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 44px;
}
.rc-footer-desc { color: #94A3B8; font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.rc-footer-meta { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #64748B; font-weight: 600; }
.rc-footer-heading { color: #FFF; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 18px; }
.rc-footer-list { list-style: none; }
.rc-footer-list li { margin-bottom: 10px; }
.rc-footer-list a { color: #94A3B8; text-decoration: none; transition: color 0.15s; }
.rc-footer-list a:hover { color: #FFF; }
.rc-contact-line { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: #94A3B8; }
.rc-contact-line svg { stroke: var(--primary); flex-shrink: 0; margin-top: 3px; }
.rc-social-links { display: flex; gap: 14px; }
.rc-social-links a { color: #CBD5E1; text-decoration: none; font-weight: 700; font-size: 12.5px; }
.rc-social-links a:hover { color: var(--primary); }
.rc-footer-bottom { border-top: 1px solid #1E293B; padding-top: 22px; font-size: 12px; color: #64748B; }
.rc-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* Floating Switcher */
.theme-switcher-bar {
  position: fixed; bottom: 20px; right: 20px;
  background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15); padding: 9px 16px;
  border-radius: 100px; z-index: 99999; display: flex; align-items: center; gap: 12px; color: #FFF;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.theme-switcher-bar select {
  background: #1E293B; color: #FFF; border: 1px solid #334155; border-radius: 20px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; outline: none;
}
.theme-switcher-bar a {
  color: #38BDF8; text-decoration: none; font-weight: 700; font-size: 12px;
  border-left: 1px solid #334155; padding-left: 10px;
}

@media (max-width: 1100px) {
  .rc-columns-grid { grid-template-columns: 1fr; }
  .rc-registry-row { grid-template-columns: 60px 1fr; gap: 12px; }
  .rc-row-action { grid-column: span 2; text-align: left; }
  .rc-nav .rc-nav-list { display: none; }
}
@media (max-width: 640px) {
  .rc-footer-grid { grid-template-columns: 1fr; }
  .rc-hero-h1 { font-size: 28px; }
}


/* Responsive and non-cropped media in articles */
.edit img, .content-body img, main img {
  max-width: 100%;
}
.edit iframe, .content-body iframe {
  max-width: 100%;
  border-radius: 10px;
}
.post-content-wrap img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  margin: 16px auto;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .rc-section-header { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
}


/* ==========================================================================
   Фикс размеров служебных иконок и элементов Microweber Live Edit
   ========================================================================== */
mw-le-element,
.mw-handle-item,
.mw-le-handle-menu,
.mw-le-handle-menu-buttons,
.mw-le-handle-menu-button {
  box-sizing: border-box !important;
}

/* Строгое ограничение размеров системных иконок Microweber Live Edit */
.mw-le-handle-menu-button-icon svg,
.mw-handle-item svg,
.mw-le-handle-menu svg,
mw-le-element svg,
.mw-handle-settings-button svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Ограничение размеров кнопок системного тулбара */
.mw-le-handle-menu-button {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  overflow: hidden !important;
}

.mw-handle-item .mw-handle-item-menus-holder,
.mw-handle-item .mw-le-handle-menu-buttons {
  height: 38px !important;
  max-height: 42px !important;
}

/* Запрет растягивания контейнеров Live Edit */
.mw-handle-item-layout-root,
.mw-handle-item:not(.mw-handle-type-layout) {
  max-width: 100vw !important;
}



/* ==========================================================================
   Служебные хэндлы Microweber Live Edit (Скрытие из общего потока документа)
   ========================================================================== */
.mw-handle-item,
#mw-handle-item-layout-root,
#mw-handle-item-module-root,
#mw-handle-item-element-root,
.insert-abs-module-button,
.mw-handle-item-layout-plus {
  position: absolute !important;
  z-index: 998 !important;
  box-sizing: border-box !important;
}

/* Скрытые элементы не должны занимать место в потоке документа */
.mw-handle-item.mw-handle-item-hidden,
.mw-handle-item-hidden,
.insert-abs-module-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ограничение размеров планок и иконок тулбара */
.mw-handle-item .mw-handle-item-menus-holder,
.mw-handle-item .mw-le-handle-menu-buttons {
  height: 38px !important;
  max-height: 42px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
  background: #FFFFFF !important;
}

.mw-le-handle-menu-button-icon svg,
.mw-handle-item svg,
.mw-le-handle-menu svg,
mw-le-element svg,
.mw-handle-settings-button svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.mw-le-handle-menu-button {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  overflow: hidden !important;
}

/* Запрет растягивания контейнеров Live Edit */
.mw-handle-item-layout-root,
.mw-handle-item:not(.mw-handle-type-layout) {
  max-width: 100vw !important;
}

/* Гарантия корректной высоты блока карты */
.rc-map-section iframe {
  width: 100% !important;
  height: 360px !important;
  min-height: 360px !important;
  display: block !important;
}



/* ==========================================================================
   Стили бейджа элемента Live Edit ([Block] / [Title] / [Image])
   ========================================================================== */
.mw-le-handle-menu-title {
  -webkit-user-select: none !important;
  user-select: none !important;
  cursor: grab !important;
  color: #FFFFFF !important;
  background-color: #0078ff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 22px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  border-radius: 4px 4px 0 0 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 2px 6px rgba(0, 120, 255, 0.35) !important;
  text-transform: uppercase !important;
}

.mw-handle-item-interaction-handle .mw-le-handle-menu-title {
  display: inline-flex !important;
  position: absolute !important;
  top: -24px !important;
  left: -2px !important;
}

/* Строгое скрытие всех неактивных хэндлов и исключение их из потока документа */
.mw-handle-item-hidden,
.mw-handle-item.mw-handle-item-hidden,
.insert-abs-module-button,
.mw-le-ghost-layout {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Запрет мусора под футером */
footer ~ * {
  display: none !important;
}
footer ~ #cookieNotice,
footer ~ script {
  display: block !important;
}
footer ~ #cookieNotice[style*="display:none"] {
  display: none !important;
}

