/* Тема ЕСА: база, шапка, подвал, полоса с заголовком, записи и списки. Оформление блоков — плагин ECA Blocks. */
:root {
	--eca-accent: #005C94; --eca-dark: #00466F; --eca-ink: #0B1B33; --eca-body: #3C4A61; --eca-muted: #4A5870;
	--eca-soft: #EAF3FA; --eca-bg: #F4F6FA; --eca-border: #E2E7F0; --eca-white: #FFFFFF;
	--eca-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
	--eca-mono: 'IBM Plex Mono', ui-monospace, monospace;
	--eca-wrap: 1240px;
}
html { scroll-behavior: smooth; }
body.eca-site { margin: 0; background: var(--eca-bg); color: var(--eca-ink); font-family: var(--eca-font); font-size: 16px; line-height: 1.65; overflow-wrap: normal; -webkit-font-smoothing: antialiased; }
body.eca-site *, body.eca-site *::before, body.eca-site *::after { box-sizing: border-box; }
.eca-site img { max-width: 100%; height: auto; }
:where(.eca-site) a { color: var(--eca-accent); }
.eca-site a:focus-visible, .eca-site button:focus-visible, .eca-site input:focus-visible { outline: 3px solid #3B8FD0; outline-offset: 2px; }
.eca-site [id] { scroll-margin-top: calc(var(--eca-head-h, 84px) + 12px); }
.eca-wrap { max-width: var(--eca-wrap); margin: 0 auto; padding: 0 24px; }
.eca-skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: #fff; padding: 10px 16px; }
.eca-skip:focus { left: 8px; top: 8px; }
.eca-main { display: block; min-height: 40vh; }

/* ---------- шапка ---------- */
.eca-masthead.is-sticky { position: sticky; top: calc(-1 * var(--eca-topbar-h, 39px)); z-index: 999; }
.admin-bar .eca-masthead.is-sticky { top: calc(32px - var(--eca-topbar-h, 39px)); }
@media (max-width: 782px) { .admin-bar .eca-masthead.is-sticky { top: calc(46px - var(--eca-topbar-h, 39px)); } }
@media (max-width: 600px) { .admin-bar .eca-masthead.is-sticky { top: calc(-1 * var(--eca-topbar-h, 39px)); } }
.eca-topbar { background: var(--eca-soft); color: var(--eca-dark); font-size: 13px; line-height: 1.4; }
.eca-topbar__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.eca-topbar__news { display: flex; align-items: center; gap: 10px; }
.eca-dot { width: 8px; height: 8px; border-radius: 50%; background: #2BB673; flex: none; }
.eca-topbar__right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.eca-topbar a { color: var(--eca-dark); text-decoration: none; }
.eca-topbar a:hover { text-decoration: underline; }
.eca-langs { display: flex; gap: 4px; }
.eca-langs a { padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.eca-langs a:hover { text-decoration: none; background: #D6E7F5; }
.eca-langs a.is-current { background: var(--eca-accent); color: #fff; }
.eca-header { background: #fff; border-bottom: 1px solid var(--eca-border); transition: box-shadow .2s; }
.eca-header.is-stuck { box-shadow: 0 6px 20px rgba(11, 27, 51, .08); }
.eca-header__in { display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.eca-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.eca-brand .eca-logo-img { width: 60px; height: 55px; object-fit: contain; }
.eca-brand__name { font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--eca-accent); max-width: 230px; }
.eca-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.eca-menu > li { position: relative; }
.eca-menu a { color: var(--eca-ink); text-decoration: none; padding: 6px 0 4px; display: inline-block; border-bottom: 2px solid transparent; }
.eca-menu a:hover { color: var(--eca-accent); }
.eca-menu .current-menu-item > a, .eca-menu .current_page_item > a, .eca-menu .current-menu-ancestor > a { color: var(--eca-accent); border-bottom-color: var(--eca-accent); }
.eca-menu .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: -12px; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--eca-border); border-radius: 12px; box-shadow: 0 12px 30px rgba(11,27,51,.1); display: none; z-index: 5; }
.eca-menu .sub-menu a { display: block; padding: 8px 16px; border: 0; font-weight: 500; }
.eca-menu li:hover > .sub-menu, .eca-menu li:focus-within > .sub-menu { display: block; }
.eca-burger { display: none; align-items: center; gap: 8px; background: none; border: 1px solid #C9D2E0; border-radius: 10px; padding: 9px 12px; font: 600 14px/1 var(--eca-font); color: var(--eca-ink); cursor: pointer; }
.eca-burger__bars, .eca-burger__bars::before, .eca-burger__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
.eca-burger__bars::before, .eca-burger__bars::after { content: ''; position: absolute; left: 0; }
.eca-burger__bars::before { top: -6px; } .eca-burger__bars::after { top: 6px; }
.eca-burger[aria-expanded="true"] .eca-burger__bars { background: transparent; }
.eca-burger[aria-expanded="true"] .eca-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.eca-burger[aria-expanded="true"] .eca-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- полоса с заголовком (записи, архивы, обычные страницы) ---------- */
.eca-band { background: linear-gradient(90deg, rgba(0,70,120,.96), rgba(0,92,148,.86)), var(--eca-accent); color: #fff; padding: 48px 0 52px; }
.eca-band__crumb { margin: 0 0 14px; font-size: 14px; color: #D6E6F3; }
.eca-band__crumb a { color: #D6E6F3; text-decoration: none; }
.eca-band__crumb a:hover { text-decoration: underline; }
.eca-band__title { margin: 0; font-size: 42px; line-height: 1.12; font-weight: 800; max-width: 900px; color: #fff; }
.eca-band__meta { margin: 14px 0 0; font-family: var(--eca-mono); font-size: 14px; color: #D6E6F3; }

/* ---------- обычные страницы и записи ---------- */
.eca-page { padding-top: 48px; padding-bottom: 88px; }
.eca-entry { background: #fff; border: 1px solid var(--eca-border); border-radius: 20px; padding: 44px 48px; max-width: 1200px; margin-left: auto; margin-right: auto; color: var(--eca-body); font-size: 17px; line-height: 1.7; }
.eca-entry > :first-child { margin-top: 0; }
.eca-entry > :last-child { margin-bottom: 0; }
.eca-entry h2, .eca-entry h3, .eca-entry h4 { color: var(--eca-ink); line-height: 1.25; font-weight: 800; margin: 1.6em 0 .6em; }
.eca-entry h2 { font-size: 28px; } .eca-entry h3 { font-size: 22px; } .eca-entry h4 { font-size: 18px; }
.eca-entry p, .eca-entry ul, .eca-entry ol { margin: 0 0 1em; }
.eca-entry img { border-radius: 12px; }
.eca-entry figure { margin: 0 0 1.4em; }
.eca-entry figcaption { font-size: 14px; color: var(--eca-muted); margin-top: 8px; }
.eca-entry blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 4px solid var(--eca-accent); background: var(--eca-soft); border-radius: 0 12px 12px 0; }
.eca-entry table { border-collapse: collapse; width: 100%; font-size: 15px; }
.eca-entry th, .eca-entry td { border: 1px solid var(--eca-border); padding: 10px 12px; text-align: left; }
.eca-entry__thumb img { width: 100%; border-radius: 14px; }
.eca-entry__back { margin-top: 32px !important; }
.eca-btn-link { display: inline-block; font-weight: 700; color: var(--eca-accent); text-decoration: none; border: 1px solid #C9D2E0; background: #fff; border-radius: 10px; padding: 12px 20px; }
.eca-btn-link:hover { background: var(--eca-soft); }
.eca-more { margin-top: 56px; }
.eca-page > .eca-news-cards, .eca-page > .eca-pagination, .eca-page > .eca-empty { max-width: none; }
/* старое содержимое Elementor внутри записи/страницы не выходит за рамку */
.eca-entry .elementor, .eca-entry .e-con { max-width: 100%; }
.eca-entry .e-con-boxed > .e-con-inner { max-width: 100% !important; }
.eca-more__h { font-size: 28px; font-weight: 800; margin: 0 0 20px; }
.eca-empty { font-size: 17px; }
.eca-pagination { margin-top: 32px; }
.eca-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.eca-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--eca-border); color: var(--eca-ink); text-decoration: none; font-weight: 700; padding: 0 12px; }
.eca-pagination .page-numbers.current { background: var(--eca-accent); border-color: var(--eca-accent); color: #fff; }
.eca-pagination .screen-reader-text { position: absolute; left: -9999px; }

/* ---------- карточки новостей (архивы, «Читайте также»; на главной — шорткод плагина) ---------- */
.eca-news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.eca-news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--eca-border); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--eca-ink); transition: box-shadow .2s; }
.eca-news-card:hover { box-shadow: 0 10px 30px rgba(0,70,120,.12); }
.eca-news-card__img, .eca-news-card__cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; display: block; }
.eca-news-card__cover { background: var(--eca-accent); display: flex; align-items: center; justify-content: center; }
.eca-news-card__cover img { width: 60px; height: auto; }
.eca-news-card.is-text { border-top: 4px solid var(--eca-accent); }
.eca-news-card.is-text .eca-news-card__body { padding-top: 20px; }
.eca-news-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.eca-news-card__date { font-size: 13px; font-weight: 600; color: #55637A; }
.eca-news-card__title { font-weight: 800; font-size: 16px; line-height: 1.35; }
.eca-news-card__text { font-size: 14px; line-height: 1.55; color: var(--eca-muted); }

/* ---------- подвал ---------- */
.eca-footer { background: var(--eca-accent); color: #E2ECF5; font-size: 14px; line-height: 1.6; }
.eca-footer .eca-wrap { padding-top: 56px; padding-bottom: 28px; }
.eca-footer__grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr; gap: 32px; }
.eca-footer__brand .eca-logo-img { width: 72px; height: 66px; object-fit: contain; }
.eca-footer__brand p { max-width: 260px; }
.eca-footer p { margin: 0 0 8px; }
.eca-footer a { color: #E2ECF5; text-decoration: none; }
.eca-footer a:hover { color: #fff; text-decoration: underline; }
.eca-footer__h { color: #fff !important; font-weight: 700; margin-bottom: 10px !important; }
.eca-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.eca-footer__menu .sub-menu { display: none; }
.eca-footer__note { margin-top: 32px !important; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); font-size: 13px; color: #D3E2EF; }
.eca-footer__copy { font-size: 13px; color: #BFD3E6; margin: 12px 0 0 !important; }

@media (max-width: 1100px) {
	.eca-burger { display: inline-flex; }
	.eca-header__in { flex-wrap: wrap; }
	.eca-mainnav { display: none; width: 100%; }
	.eca-mainnav.is-open { display: block; }
	.eca-menu { flex-direction: column; gap: 0; padding: 8px 0 4px; font-size: 16px; }
	.eca-menu > li { border-top: 1px solid #EEF2F8; }
	.eca-menu a { padding: 12px 0; border: 0; display: block; }
	.eca-menu .current-menu-item > a { border: 0; }
	.eca-menu .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 8px 14px; }
	.eca-mainnav { max-height: calc(100vh - 120px); overflow-y: auto; }
	.eca-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eca-news-cards > .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.eca-wrap { padding: 0 16px; }
	.eca-topbar__news { font-size: 12px; }
	.eca-header__in { padding-top: 10px; padding-bottom: 10px; }
	.eca-brand .eca-logo-img { width: 48px; height: 44px; }
	.eca-brand__name { font-size: 12px; max-width: 190px; }
	.eca-band { padding: 32px 0 36px; }
	.eca-band__title { font-size: 28px; }
	.eca-page { padding-top: 24px; padding-bottom: 56px; }
	.eca-entry { padding: 24px 20px; font-size: 16px; border-radius: 16px; }
	.eca-news-cards > .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
	.eca-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 420px) {
	.eca-brand__name { display: none; }
}


/* Native Gutenberg Query Loop news layouts. */
.eca-news-list { display: block; }
.eca-news-list > .wp-block-post-template { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.eca-news-list .wp-block-post { list-style: none; margin: 0; }
.eca-news-list__item { display: flex; align-items: baseline; gap: 22px; padding: 15px 0; border-bottom: 1px solid var(--eca-border); }
.eca-news-list__date { flex: 0 0 112px; color: var(--eca-muted); font-family: var(--eca-mono); font-size: 13px; }
.eca-news-list__title a { color: var(--eca-ink); font-weight: 700; text-decoration: none; }
.eca-news-list__title a:hover { color: var(--eca-accent); }
.eca-news-cards { display: block; }
.eca-news-cards > .wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.eca-news-cards .wp-block-post { min-width: 0; list-style: none; }
.eca-news-card { height: 100%; overflow: hidden; }
.eca-news-card .wp-block-post-featured-image { margin: 0; }
.eca-news-card .wp-block-post-featured-image img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 0; }
.eca-news-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.eca-news-card__date { margin: 0; font-size: 13px; font-weight: 600; color: #55637A; }
.eca-news-card__title { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 800; }
.eca-news-card__title a { color: var(--eca-ink); text-decoration: none; }
.eca-news-card__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--eca-muted); }
.eca-pagination { margin-top: 36px; gap: 14px; }
.eca-pagination a { text-decoration: none; color: var(--eca-accent); }
@media (max-width: 1100px) {
	.eca-news-cards > .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.eca-news-cards > .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
	.eca-news-list__item { gap: 12px; }
	.eca-news-list__date { flex-basis: 92px; }
}
