/* =========================================================================
   WKITU Library — стили темы
   Все классы с префиксом wk-, чтобы не пересекаться с Bootstrap 3 (skelib).
   Размеры в px: Bootstrap ставит html{font-size:10px}.
   ========================================================================= */

@font-face { font-family: "WK Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("../fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "WK Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "WK Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "WK Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.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 {
	--wk-blue: #1f5fd6;
	--wk-blue-600: #1a50b6;
	--wk-blue-700: #163f8f;
	--wk-sky: #0ea5e9;
	--wk-navy: #133561;
	--wk-navy-900: #0d1b33;
	--wk-ink: #0f1d36;
	--wk-text: #334155;
	--wk-muted: #64748b;
	--wk-line: #e3e8f0;
	--wk-bg: #f3f6fb;
	--wk-soft: #eef4ff;
	--wk-card: #ffffff;
	--wk-green: #16a34a;
	--wk-r: 14px;
	--wk-shadow: 0 1px 2px rgba(15, 29, 54, .05), 0 6px 20px rgba(15, 29, 54, .06);
	--wk-shadow-lg: 0 10px 30px rgba(15, 29, 54, .12);
	--wk-font: "WK Inter", "Segoe UI", Roboto, Arial, sans-serif;
	--wk-wrap: 1200px;
}

/* ---------- База ---------- */
body.wk-theme { font-family: var(--wk-font); font-size: 16px; line-height: 1.6; color: var(--wk-text); background: var(--wk-bg); -webkit-font-smoothing: antialiased; }
.wk-theme h1, .wk-theme h2, .wk-theme h3, .wk-theme h4, .wk-theme h5, .wk-theme h6 { font-family: var(--wk-font); color: var(--wk-ink); letter-spacing: -.01em; }
.wk-theme a { color: var(--wk-blue); }
.wk-theme a:hover, .wk-theme a:focus { color: var(--wk-blue-700); }
.wk-theme :focus-visible { outline: 3px solid rgba(31, 95, 214, .45); outline-offset: 2px; }
.wk-ico { flex: none; vertical-align: middle; }
.wk-wrap { max-width: var(--wk-wrap); margin: 0 auto; padding: 0 20px; }
.wk-theme .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* GeneratePress-контейнер */
.wk-theme .site.grid-container { max-width: var(--wk-wrap); background: transparent; }
.wk-theme .site-content { padding-top: 28px; padding-bottom: 8px; }
.wk-theme.separate-containers .inside-article,
.wk-theme.separate-containers .comments-area,
.wk-theme.separate-containers .page-header,
.wk-theme.separate-containers .paging-navigation,
.wk-theme .sidebar .widget { border-radius: var(--wk-r); box-shadow: var(--wk-shadow); background: var(--wk-card); }
.wk-theme .sidebar .widget { padding: 22px; }
.wk-theme .entry-title { font-size: 30px; font-weight: 800; line-height: 1.25; }
.wk-theme .entry-meta { color: var(--wk-muted); font-size: 14px; }

/* ---------- Кнопки ---------- */
.wk-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
	font: 600 14px/1.2 var(--wk-font); text-decoration: none !important; cursor: pointer;
	transition: background-color .15s, box-shadow .15s, transform .15s, color .15s;
}
.wk-btn--primary { background: var(--wk-blue); color: #fff !important; box-shadow: 0 4px 12px rgba(31, 95, 214, .25); }
.wk-btn--primary:hover { background: var(--wk-blue-600); transform: translateY(-1px); }
.wk-btn--ghost { background: var(--wk-soft); color: var(--wk-blue) !important; }
.wk-btn--ghost:hover { background: #dfeaff; }
.wk-btn--hero { background: var(--wk-blue); color: #fff !important; box-shadow: 0 6px 18px rgba(8, 30, 80, .35); padding: 10px 18px; font-size: 13px; }
.wk-btn--hero:hover { background: #2b6cf0; transform: translateY(-1px); }
.wk-btn--block { display: flex; width: 100%; }
.wk-btn--grow { flex: 1; }
.wk-round {
	width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--wk-blue); color: #fff; transition: background-color .15s;
}
.wk-theme .wk-round:hover, .wk-theme .wk-round:focus { background: var(--wk-blue-700); color: #fff; }
.wk-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.wk-pill--green { background: #dcfce7; color: #15803d; }
.wk-pill--green::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wk-green); }
.wk-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--wk-blue); text-decoration: none !important; }
.wk-more .wk-ico { transition: transform .15s; }
.wk-more:hover .wk-ico { transform: translateX(2px); }
.wk-center { text-align: center; margin-top: 26px; }
.wk-empty { padding: 28px; background: #fff; border-radius: var(--wk-r); color: var(--wk-muted); text-align: center; }

/* ---------- Верхняя полоса ---------- */
.wk-topbar { background: var(--wk-navy); color: #dbe7ff; font-size: 13px; position: relative; z-index: 60; }
.wk-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.wk-topbar__univ { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; min-width: 0; }
.wk-topbar__univ span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-topbar__right { display: flex; align-items: center; gap: 18px; flex: none; }
.wk-theme .wk-topbar__link { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 500; }
.wk-theme .wk-topbar__link:hover { color: #bcd4ff; }
.wk-lang { position: relative; }
.wk-lang__btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font: 500 13px var(--wk-font); cursor: pointer; padding: 6px 0; }
.wk-theme .wk-lang__btn:hover, .wk-theme .wk-lang__btn:focus { background: none; color: #bcd4ff; }
.wk-lang__list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: var(--wk-shadow-lg); display: none; }
.wk-lang.is-open .wk-lang__list { display: block; }
.wk-theme .wk-lang__list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--wk-ink); text-decoration: none; font-size: 14px; }
.wk-theme .wk-lang__list a:hover, .wk-theme .wk-lang__list a.is-current { background: var(--wk-soft); color: var(--wk-blue); }
.wk-lang__code { font-size: 11px; font-weight: 700; color: var(--wk-muted); }

/* ---------- Шапка ---------- */
.wk-header { background: #fff; }
.wk-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.wk-theme .wk-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--wk-ink); min-width: 0; }
.wk-brand__logo { width: 58px; height: 58px; object-fit: contain; flex: none; }
.wk-brand__icon { color: var(--wk-blue); }
.wk-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wk-brand__name { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--wk-ink); }
.wk-brand__tag { font-size: 12px; font-weight: 600; color: var(--wk-muted); letter-spacing: .02em; }
.wk-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--wk-line); background: #fff; color: var(--wk-ink); align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.wk-theme .wk-burger:hover, .wk-theme .wk-burger:focus { background: var(--wk-soft); color: var(--wk-ink); }
.wk-burger__close { display: none; }
.wk-burger[aria-expanded="true"] .wk-burger__open { display: none; }
.wk-burger[aria-expanded="true"] .wk-burger__close { display: block; }

/* ---------- Меню ---------- */
.wk-nav { background: #f6f8fc; border-top: 1px solid var(--wk-line); border-bottom: 1px solid var(--wk-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .wk-nav { top: 32px; }
.wk-theme .wk-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 54px; }
.wk-menu li { position: relative; margin: 0; }
.wk-theme .wk-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; color: var(--wk-ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.wk-theme .wk-menu > li > a:hover, .wk-theme .wk-menu > li:focus-within > a { background: #fff; color: var(--wk-blue); }
.wk-theme .wk-menu > li.current-menu-item > a,
.wk-theme .wk-menu > li.current-menu-ancestor > a,
.wk-theme .wk-menu > li.current_page_item > a,
.wk-theme .wk-menu > li.current-menu-parent > a { background: var(--wk-blue); color: #fff; }
.wk-menu > li.menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; margin-left: 2px; }
.wk-theme .wk-menu .sub-menu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 12px; box-shadow: var(--wk-shadow-lg); z-index: 20; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.wk-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.wk-menu li:hover > .sub-menu, .wk-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.wk-theme .wk-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--wk-ink); font-size: 14px; font-weight: 500; text-decoration: none; line-height: 1.35; }
.wk-theme .wk-menu .sub-menu a:hover, .wk-theme .wk-menu .sub-menu .current-menu-item > a { background: var(--wk-soft); color: var(--wk-blue); }
.wk-menu .sub-menu .sub-menu { left: 100%; top: -8px; }
.wk-sub-toggle { display: none; }

/* ---------- Hero ---------- */
.wk-hero {
	position: relative; color: #fff; overflow: hidden;
	background:
		linear-gradient(90deg, #143d8c 0%, rgba(20, 61, 140, .96) 30%, rgba(24, 75, 170, .55) 62%, rgba(31, 95, 214, .15) 100%),
		url("../img/shelves.svg") right center / auto 115% no-repeat,
		radial-gradient(900px 420px at 88% 15%, rgba(14, 165, 233, .45), transparent 65%),
		linear-gradient(120deg, #133a85 0%, #1c56c4 55%, #2a6fe0 100%);
}
.wk-hero.has-photo { background: #133a85; }
.wk-hero__bg { position: absolute; inset: 0; }
.wk-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 40, 96, .95) 0%, rgba(22, 70, 170, .82) 45%, rgba(31, 95, 214, .35) 100%); }
.wk-hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.wk-hero__slide.is-active { opacity: 1; }
.wk-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.wk-hero__video.is-ready { opacity: 1; }
.wk-hero__bg::after { z-index: 1; }

/* ---------- Ашық интернет ресурстары ---------- */
.wk-res-intro { font-size: 17px; color: var(--wk-muted); margin: 0 0 22px; }
.wk-res-group + .wk-res-group { margin-top: 40px; }
.wk-theme .wk-res-group__title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; margin: 0 0 18px; }
.wk-res-group__title::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--wk-blue); }
.wk-grid--res { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wk-res { display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: var(--wk-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.wk-res:hover { transform: translateY(-3px); box-shadow: var(--wk-shadow-lg); }
.wk-res__logo { display: flex; align-items: center; justify-content: center; height: 140px; padding: 24px 28px; background: linear-gradient(180deg, #f6f8fc, #edf2fa); }
.wk-res__logo img { max-width: 100%; max-height: 104px; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.wk-res__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.wk-theme .wk-res__title { font-size: 18px; font-weight: 800; line-height: 1.35; margin: 0 0 10px; color: var(--wk-ink); }
.wk-res__text { font-size: 15px; line-height: 1.65; color: var(--wk-text); flex: 1; margin-bottom: 18px; }
.wk-res__text p { margin: 0 0 8px; }
.wk-res__text ul { margin: 0 0 8px 18px; }
.wk-res .wk-btn { align-self: flex-start; border-radius: 10px; padding: 12px 22px; }
@media (max-width: 1080px) { .wk-grid--res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .wk-grid--res { grid-template-columns: 1fr; } .wk-res__body { padding: 20px; } }
.wk-hero__in { position: relative; z-index: 1; padding-top: 58px; padding-bottom: 108px; }
.wk-hero__badge { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(4px); }
.wk-theme .wk-hero__title { color: #fff; font-size: 44px; line-height: 1.12; font-weight: 800; margin: 18px 0 16px; max-width: 760px; letter-spacing: -.02em; }
.wk-hero__text { max-width: 720px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .9); }
.wk-hero__text p { margin: 0 0 10px; }
.wk-hero__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 720px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); }
.wk-hero__dots { display: flex; gap: 6px; }
.wk-hero__dots span { width: 8px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: width .3s, background-color .3s; }
.wk-hero__dots span.is-active { width: 22px; background: #fff; }
.wk-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Главная ---------- */
.wk-theme.home .site-content { padding-top: 0; }
.wk-main { width: 100%; min-width: 0; }
.wk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: -64px; position: relative; z-index: 5; }
.wk-cards:not(:has(.wk-card)) { display: none; }
.wk-theme .wk-card {
	display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 18px 12px;
	min-height: 140px; padding: 22px; border-radius: 16px; color: #fff; text-decoration: none;
	background: linear-gradient(135deg, #1f6fe5, #19a4ec); box-shadow: 0 12px 28px rgba(16, 70, 170, .28);
	transition: transform .2s, box-shadow .2s;
}
.wk-theme .wk-card--2 { background: linear-gradient(135deg, #1aa0ea, #38bdf8); }
.wk-theme .wk-card--3 { background: linear-gradient(135deg, #1a4fc0, #2b78e4); }
.wk-theme .wk-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(16, 70, 170, .34); color: #fff; }
.wk-card__icon { grid-column: 1; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; }
.wk-card__title { grid-column: 1; align-self: end; font-size: 18px; font-weight: 700; line-height: 1.3; }
.wk-card__go { grid-column: 2; grid-row: 2; align-self: end; width: 34px; height: 34px; border-radius: 50%; background: var(--wk-blue); border: 2px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; }

.wk-front__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 40px; align-items: start; }
.wk-cards:not(:has(.wk-card)) + .wk-front__grid { margin-top: 32px; }
.wk-sechead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--wk-line); }
.wk-theme .wk-sechead__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 24px; font-weight: 800; }
.wk-sechead__title::before { content: ""; width: 5px; height: 24px; border-radius: 3px; background: var(--wk-blue); }
.wk-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border-radius: 12px; box-shadow: var(--wk-shadow); }
.wk-theme .wk-tabs__item { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--wk-blue); text-decoration: none; }
.wk-tabs__item.is-active { background: var(--wk-blue); color: #fff; }
.wk-theme a.wk-tabs__item:hover { background: var(--wk-soft); }

.wk-newslist { display: flex; flex-direction: column; gap: 18px; }
.wk-news { display: flex; gap: 20px; padding: 16px; background: #fff; border-radius: var(--wk-r); box-shadow: var(--wk-shadow); transition: box-shadow .2s, transform .2s; }
.wk-news:hover { box-shadow: var(--wk-shadow-lg); transform: translateY(-2px); }
.wk-news__img { position: relative; flex: none; width: 210px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--wk-soft); display: block; }
.wk-news__img img, .wk-tile__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-news__body { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.wk-news__date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--wk-muted); }
.wk-theme .wk-news__title { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 6px 0 8px; }
.wk-theme .wk-news__title a, .wk-theme .wk-tile__title a { color: var(--wk-ink); text-decoration: none; }
.wk-theme .wk-news__title a:hover, .wk-theme .wk-tile__title a:hover { color: var(--wk-blue); }
.wk-news__excerpt { font-size: 14px; line-height: 1.55; color: var(--wk-muted); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.wk-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #e8f0ff, #f5f9ff); color: var(--wk-blue); }
.wk-ph__logo { width: 46% !important; height: auto !important; max-width: 120px; opacity: .85; object-fit: contain !important; }

/* ---------- Правая колонка ---------- */
.wk-side { display: flex; flex-direction: column; gap: 22px; }
.wk-box { background: #fff; border-radius: var(--wk-r); box-shadow: var(--wk-shadow); padding: 20px; }
.wk-box--hint { background: #fffbeb; border: 1px dashed #f59e0b; font-size: 14px; box-shadow: none; }
.wk-box--hint p { margin: 0; }
.wk-box__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.wk-theme .wk-box__title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--wk-ink); }
.wk-box__head .wk-box__title { margin: 0; }
.wk-box__title .wk-ico { color: var(--wk-blue); }
.wk-box__more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; text-decoration: none !important; }

/* Слайдер книг */
.wk-books__nav { display: flex; gap: 6px; }
.wk-books__track { position: relative; background: var(--wk-bg); border-radius: 12px; padding: 18px 14px 16px; min-height: 270px; }
.wk-theme .wk-book { display: none; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--wk-ink); }
.wk-theme .wk-book.is-active { display: flex; animation: wk-fade .35s ease; }
.wk-book__cover { display: block; width: 128px; aspect-ratio: 5 / 7; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 22px rgba(15, 29, 54, .2); background: #fff; }
.wk-book__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-book__title { margin-top: 14px; font-size: 14px; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wk-book__meta { font-size: 12px; color: var(--wk-muted); margin-top: 2px; }
@keyframes wk-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Календарь */
.wk-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wk-cal__title { font-size: 14px; font-weight: 700; color: var(--wk-ink); }
.wk-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.wk-cal__wd { font-size: 11px; font-weight: 600; color: var(--wk-muted); padding: 4px 0; }
.wk-cal__d { display: flex; align-items: center; justify-content: center; height: 32px; border-radius: 8px; font-size: 13px; color: var(--wk-text); text-decoration: none !important; }
.wk-theme a.wk-cal__d.has-news { background: #dbe8ff; color: var(--wk-blue-700); font-weight: 700; }
.wk-theme a.wk-cal__d.has-news:hover { background: var(--wk-blue); color: #fff; }
.wk-theme .wk-cal__d.is-today { background: var(--wk-blue); color: #fff; font-weight: 700; }
.wk-cal-wrap.is-loading { opacity: .5; pointer-events: none; }

/* Поиск */
.wk-search { background: linear-gradient(160deg, #142a55, #0d1b38); color: #c9d6f2; }
.wk-theme .wk-search .wk-box__title { color: #fff; }
.wk-theme .wk-search .wk-box__title .wk-ico { color: #7fb0ff; }
.wk-search label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 10px; color: #c9d6f2; }
.wk-search__row { display: flex; align-items: center; background: #fff; border-radius: 10px; padding: 5px 5px 5px 12px; }
.wk-theme .wk-search__row input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 8px 4px; font: 14px var(--wk-font); color: var(--wk-ink); box-shadow: none !important; outline: none; height: auto; }
.wk-theme .wk-search__row button { width: 36px; height: 36px; flex: none; border: 0; border-radius: 8px; background: var(--wk-blue); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.wk-theme .wk-search__row button:hover, .wk-theme .wk-search__row button:focus { background: var(--wk-blue-600); color: #fff; }

/* Журнал */
.wk-journal__card { background: linear-gradient(160deg, #142a55, #0d1b38); border-radius: 12px; padding: 16px; color: #c9d6f2; }
.wk-journal__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 10px; }
.wk-journal__issn { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; color: #9fb4dc; }
.wk-journal__issue { padding: 2px 8px; border-radius: 6px; background: var(--wk-blue); color: #fff; font-weight: 700; }
.wk-theme .wk-journal__title { color: #fff; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 6px; line-height: 1.3; }
.wk-journal__desc { font-size: 12px; line-height: 1.5; margin: 0 0 12px; }
.wk-theme .wk-journal__tags { list-style: none; margin: 0; padding: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid rgba(255, 255, 255, .12); }
.wk-journal__tags li { margin: 0; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .1); font-size: 11px; color: #dbe7ff; }
.wk-journal__actions { display: flex; gap: 8px; margin-top: 12px; }
.wk-journal__actions .wk-btn { padding: 9px 14px; font-size: 13px; border-radius: 10px; }

/* ---------- Внутренние страницы разделов ---------- */
.wk-pagehead { position: relative; overflow: hidden; color: #fff; border-radius: 18px; padding: 28px 32px; margin-bottom: 28px; background: linear-gradient(90deg, #143d8c 0%, rgba(20, 61, 140, .9) 45%, rgba(31, 95, 214, .2) 100%), url("../img/shelves.svg") right center / auto 160% no-repeat, linear-gradient(120deg, #123a86, #1f63d8); }
.wk-theme .wk-pagehead .wk-crumbs, .wk-theme .wk-pagehead .wk-crumbs a { color: rgba(255, 255, 255, .8); }
.wk-theme .wk-pagehead__title { color: #fff; font-size: 32px; font-weight: 800; margin: 6px 0 0; display: flex; align-items: center; gap: 12px; }
.wk-pagehead__desc { margin-top: 8px; color: rgba(255, 255, 255, .88); max-width: 720px; }
.wk-pagehead__desc p { margin: 0; }
.wk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--wk-muted); margin-bottom: 16px; }
.wk-pagehead .wk-crumbs { margin-bottom: 0; }
.wk-theme .wk-crumbs a { color: var(--wk-muted); text-decoration: none; }
.wk-theme .wk-crumbs a:hover { color: var(--wk-blue); text-decoration: underline; }

.wk-grid { display: grid; gap: 22px; }
.wk-grid--news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wk-grid--db { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-grid--books { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.wk-tile { background: #fff; border-radius: var(--wk-r); box-shadow: var(--wk-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.wk-tile:hover { transform: translateY(-3px); box-shadow: var(--wk-shadow-lg); }
.wk-tile__img { display: block; aspect-ratio: 16 / 10; background: var(--wk-soft); }
.wk-tile__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.wk-theme .wk-tile__title { font-size: 17px; font-weight: 700; line-height: 1.35; margin: 6px 0 8px; }
.wk-tile .wk-news__excerpt { -webkit-line-clamp: 3; flex: 1; }

.wk-db { display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: var(--wk-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.wk-db:hover { transform: translateY(-3px); box-shadow: var(--wk-shadow-lg); }
.wk-db__logo { display: flex; align-items: center; justify-content: center; height: 150px; padding: 22px 30px; background: #fff; border-bottom: 1px solid var(--wk-line); }
.wk-db__logo img { max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain; }
.wk-db__logo--big { height: 200px; border: 1px solid var(--wk-line); border-radius: var(--wk-r); margin-bottom: 18px; }
.wk-db__logo--big img { max-height: 140px; }
.wk-db__abbr { font-size: 26px; font-weight: 800; color: var(--wk-blue); text-align: center; }
.wk-db__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.wk-theme .wk-db__title { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.wk-theme .wk-db__title a { color: var(--wk-ink); text-decoration: none; }
.wk-theme .wk-db__title a:hover { color: var(--wk-blue); }
.wk-db__text { font-size: 14px; color: var(--wk-muted); line-height: 1.55; margin: 0 0 12px; flex: 1; }
.wk-db__access { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 13px; line-height: 1.45; }
.wk-db__access .wk-ico { margin-top: 2px; }
.wk-db__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.wk-theme .wk-bookcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 14px; background: #fff; border-radius: var(--wk-r); box-shadow: var(--wk-shadow); text-decoration: none; color: var(--wk-ink); transition: transform .2s, box-shadow .2s; }
.wk-theme .wk-bookcard:hover { transform: translateY(-3px); box-shadow: var(--wk-shadow-lg); color: var(--wk-blue); }

.wk-single { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; background: #fff; border-radius: 18px; box-shadow: var(--wk-shadow); padding: 32px; }
.wk-theme .wk-single__title { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 0 0 16px; }
.wk-book__cover--big { width: 100%; max-width: 260px; margin: 0 auto; }
.wk-note { background: #f0fdf4; color: #166534; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.wk-note strong { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.wk-note p { margin: 0; }
.wk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 20px; }
.wk-facts div { background: var(--wk-bg); border-radius: 10px; padding: 10px 14px; }
.wk-facts dt { font-size: 12px; font-weight: 600; color: var(--wk-muted); }
.wk-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--wk-ink); }
.wk-content { margin-bottom: 20px; }
.wk-single__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.wk-pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.wk-theme .wk-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 10px; background: #fff; box-shadow: var(--wk-shadow); color: var(--wk-ink); text-decoration: none; font-weight: 600; }
.wk-theme .wk-pager .page-numbers.current { background: var(--wk-blue); color: #fff; }

/* ---------- Подвал ---------- */
.wk-theme .site-footer { background: transparent; }
.wk-footer { background: var(--wk-navy-900); color: #93a4c3; margin-top: 50px; font-size: 13px; }
.wk-footer__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 64px; padding-top: 14px; padding-bottom: 14px; }
.wk-footer__copy { margin: 0; }
.wk-theme .wk-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.wk-footer__menu li { margin: 0; }
.wk-theme .wk-footer__menu a { color: #c9d6f2; text-decoration: none; }
.wk-theme .wk-footer__menu a:hover { color: #fff; }

/* ---------- Блочные виджеты в боковой колонке внутренних страниц ---------- */
.wk-theme .sidebar .wp-block-search__label { font-weight: 700; color: var(--wk-ink); font-size: 16px; }
.wk-theme .sidebar .wp-block-search__inside-wrapper { gap: 8px; }
.wk-theme .sidebar .wp-block-search__input { border: 1px solid var(--wk-line); border-radius: 10px; background: var(--wk-bg); padding: 10px 12px; font-size: 14px; }
.wk-theme .sidebar .wp-block-search__button { background: var(--wk-blue); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; margin-left: 0; }
.wk-theme .sidebar .wp-block-search__button:hover { background: var(--wk-blue-600); }
.wk-theme .sidebar .wp-block-latest-posts__list li { margin-bottom: 10px; line-height: 1.4; }
.wk-theme .sidebar .wp-block-latest-posts__list a, .wk-theme .sidebar .widget ul a { color: var(--wk-ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.wk-theme .sidebar .wp-block-latest-posts__list a:hover, .wk-theme .sidebar .widget ul a:hover { color: var(--wk-blue); }
.wk-theme .sidebar .widget h2, .wk-theme .sidebar .wp-block-heading { font-size: 17px; font-weight: 700; }
.wk-theme .wk-sub-toggle:hover, .wk-theme .wk-sub-toggle:focus { background: var(--wk-blue); color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
	.wk-front__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
	.wk-theme .wk-hero__title { font-size: 38px; }
	.wk-grid--news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
	.wk-burger { display: inline-flex; }
	.wk-nav { display: none; position: static; background: #fff; border-top: 0; }
	.wk-nav.is-open { display: block; }
	.wk-theme .wk-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px; min-height: 0; }
	.wk-menu li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--wk-line); }
	.wk-theme .wk-menu > li > a { flex: 1; padding: 13px 4px; border-radius: 0; white-space: normal; }
	.wk-theme .wk-menu > li.current-menu-item > a, .wk-theme .wk-menu > li.current-menu-ancestor > a,
	.wk-theme .wk-menu > li.current_page_item > a, .wk-theme .wk-menu > li.current-menu-parent > a { background: none; color: var(--wk-blue); }
	.wk-menu > li.menu-item-has-children > a::after { display: none; }
	.wk-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: var(--wk-soft); color: var(--wk-blue); border-radius: 10px; cursor: pointer; padding: 0; }
	.wk-sub-toggle[aria-expanded="true"] .wk-ico { transform: rotate(180deg); }
	.wk-theme .wk-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; width: 100%; min-width: 0; padding: 0 0 8px 12px; background: transparent; }
	.wk-menu .sub-menu.is-open { display: block; }
	.wk-menu .sub-menu li { border: 0; }
	.wk-theme .wk-menu .sub-menu a { flex: 1; }
	.admin-bar .wk-nav { top: 0; }

	.wk-front__grid { grid-template-columns: 1fr; }
	.wk-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.wk-grid--db { grid-template-columns: 1fr; }
	.wk-single { grid-template-columns: 1fr; padding: 22px; }
}

@media (max-width: 680px) {
	.wk-topbar__univ { display: none; }
	.wk-topbar__in { justify-content: flex-end; }
	.wk-header__in { min-height: 70px; }
	.wk-brand__logo { width: 46px; height: 46px; }
	.wk-brand__name { font-size: 14px; }
	.wk-brand__tag { font-size: 11px; }
	.wk-hero { background-size: auto, auto 70%, auto, auto; background-position: center, right bottom, center, center; }
	.wk-hero__in { padding-top: 36px; padding-bottom: 86px; }
	.wk-theme .wk-hero__title { font-size: 28px; }
	.wk-hero__text { font-size: 15px; }
	.wk-hero__bottom { flex-direction: column; align-items: flex-start; }
	.wk-cards { grid-template-columns: 1fr; gap: 12px; margin-top: -56px; }
	.wk-theme .wk-card { min-height: 0; grid-template-columns: auto 1fr auto; grid-template-rows: auto; align-items: center; padding: 16px; }
	.wk-card__icon { width: 42px; height: 42px; }
	.wk-card__title { grid-column: 2; align-self: center; font-size: 16px; }
	.wk-card__go { grid-column: 3; grid-row: 1; align-self: center; }
	.wk-news { flex-direction: column; padding: 12px; gap: 12px; }
	.wk-news__img { width: 100%; aspect-ratio: 16 / 9; }
	.wk-ph__logo { width: 30% !important; }
	.wk-side { grid-template-columns: 1fr; }
	.wk-grid--news { grid-template-columns: 1fr; }
	.wk-grid--books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.wk-pagehead { padding: 22px 20px; border-radius: 14px; }
	.wk-theme .wk-pagehead__title { font-size: 24px; }
	.wk-theme .wk-sechead__title { font-size: 21px; }
	.wk-tabs { width: 100%; }
	.wk-theme .wk-tabs__item { flex: 1; justify-content: center; white-space: nowrap; font-size: 12px; padding: 8px 6px; }
	.wk-theme .entry-title { font-size: 24px; }
	.wk-footer__in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	.wk-theme * { animation: none !important; transition: none !important; }
}
