/*
Theme Name: Ulytau News
Theme URI: https://ulytaunews.kz/
Author: Ulytau News
Description: «Ұлытау» газетіне арналған заманауи жаңалықтар тақырыбы. Бұрынғы логотип сақталады, жаңалықтар таспасы (бегунок), PDF газет блогы және мұрағат беті, Customizer арқылы редакция деректерін баптау.
Version: 1.0.1
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ulytau
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   1. Айнымалылар
   ========================================================================== */
:root {
	--navy: #0b2545;
	--navy-2: #13315c;
	--navy-3: #1d4174;
	--sky: #0a8fb0;
	--sky-2: #0bb3d9;
	--sky-soft: #e4f4f8;
	--gold: #d4a017;
	--gold-soft: #fbf3dc;
	--red: #d62839;
	--ink: #12161c;
	--text: #2a2f37;
	--muted: #6b7280;
	--line: #e7e3da;
	--paper: #f6f4ef;
	--white: #fff;

	--f-head: "PT Serif", Georgia, "Times New Roman", serif;
	--f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(11, 37, 69, .06), 0 8px 24px -12px rgba(11, 37, 69, .18);
	--shadow-lg: 0 24px 48px -24px rgba(11, 37, 69, .45);
	--container: 1240px;
	--gap: 28px;

	--ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='16' viewBox='0 0 48 16' fill='none' stroke='%23d4a017' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M0 14h8c6 0 6-10 12-10 4 0 4 5 1 5-2 0-2-2-.5-2M48 14h-8c-6 0-6-10-12-10-4 0-4 5-1 5 2 0 2-2 .5-2'/%3E%3C/svg%3E");
}

/* ==========================================================================
   2. Негіз
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font: 400 16px/1.6 var(--f-ui);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sky); }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--f-head); line-height: 1.22; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sky-2); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--white); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow);
}

.icon { fill: currentColor; flex: none; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 18px; border-radius: 999px; font: 600 14px/1 var(--f-ui);
	border: 1.5px solid transparent; transition: all .2s ease;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--sky); color: var(--white); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--sky); color: var(--sky); }

.badge {
	display: inline-block; font: 700 11px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase;
	color: var(--sky); margin-bottom: 8px;
}
.badge:hover { color: var(--navy); }

/* ==========================================================================
   3. Шапка
   ========================================================================== */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__date { display: flex; align-items: center; gap: 8px; }
.topbar__date .icon { color: var(--gold); }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__pdf {
	display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--white);
	background: rgba(255, 255, 255, .1); padding: 5px 12px; border-radius: 999px;
}
.topbar__pdf:hover { background: var(--gold); color: var(--navy); }

.socials { display: flex; gap: 6px; flex-wrap: wrap; }
.socials a {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	transition: all .2s ease;
}
.socials--top a { color: rgba(255, 255, 255, .75); }
.socials--top a:hover { color: var(--white); background: rgba(255, 255, 255, .12); }
.socials .icon { width: 16px; height: 16px; }

.masthead {
	background: var(--white);
	position: relative;
}
.masthead::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
	background: var(--ornament) repeat-x center / 48px 16px; opacity: .55;
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 20px 30px; }

.brand { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand .custom-logo-link { display: inline-block; }
.brand .custom-logo { max-height: 92px; width: auto; }
.brand__text { font: 700 40px/1 var(--f-head); color: var(--navy); letter-spacing: -.01em; }
.brand__tagline {
	margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.masthead__issue {
	display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
	transition: all .25s ease;
}
.masthead__issue img {
	width: 52px; height: 70px; object-fit: cover; object-position: top; border-radius: 4px;
	box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .35); transform: rotate(-3deg); transition: transform .25s ease;
}
.masthead__issue span { display: flex; flex-direction: column; gap: 2px; }
.masthead__issue small { font-size: 12px; color: var(--muted); }
.masthead__issue strong { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-size: 15px; }
.masthead__issue:hover { border-color: var(--gold); background: var(--gold-soft); color: inherit; }
.masthead__issue:hover img { transform: rotate(0); }
.header-banner { max-width: 728px; }

/* Навигация */
.navbar {
	position: sticky; top: 0; z-index: 50; background: var(--navy-2);
	transition: box-shadow .25s ease;
}
.admin-bar .navbar { top: 32px; }
.navbar.is-stuck { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.navbar__inner { display: flex; align-items: center; gap: 8px; min-height: 54px; }
.navbar__menu { flex: 1; }
.navbar .menu { list-style: none; display: flex; flex-wrap: wrap; }
.navbar .menu > li { position: relative; }
.navbar .menu > li > a {
	display: block; padding: 17px 14px; color: var(--white); font: 600 14px/20px var(--f-ui);
	letter-spacing: .02em; position: relative;
}
.navbar .menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
	background: var(--gold); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .25s ease;
}
.navbar .menu > li:hover > a::after,
.navbar .menu > li.current-menu-item > a::after,
.navbar .menu > li.current-menu-ancestor > a::after,
.navbar .menu > li.current-category-ancestor > a::after { transform: scaleX(1); }
.navbar .menu > li > a:hover { color: var(--white); }
.navbar .menu-item--pdf > a,
.navbar .menu a[href*="pdf"] { color: var(--gold) !important; }

.navbar .sub-menu {
	list-style: none; position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 10;
	background: var(--white); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg);
	padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s ease;
	border-top: 3px solid var(--gold);
}
.navbar .menu > li:hover > .sub-menu,
.navbar .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.navbar .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.navbar .sub-menu a:hover { background: var(--sky-soft); color: var(--navy); }
.navbar .menu > li.menu-item-has-children > a { padding-right: 30px; }
.navbar .menu-item-has-children > a::before {
	content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7;
}
.submenu-toggle { display: none; }

.navbar__burger {
	display: none; align-items: center; gap: 8px; background: none; border: 0; color: var(--white);
	padding: 10px 6px; font-weight: 600;
}
.navbar__burger .icon { width: 24px; height: 24px; }
.navbar__search-btn {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 0; background: rgba(255, 255, 255, .08); color: var(--white); transition: background .2s;
}
.navbar__search-btn:hover { background: var(--sky); }

.search-panel { background: var(--navy); padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.search-form { display: flex; gap: 8px; }
.search-form__input {
	flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line);
	font: 400 15px var(--f-ui); background: var(--white); color: var(--ink);
}
.search-form__input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }
.search-form__btn {
	display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
	padding: 0 22px; background: var(--gold); color: var(--navy); font-weight: 700;
}
.search-form__btn:hover { background: var(--sky-2); color: var(--white); }

/* ==========================================================================
   4. Жаңалықтар таспасы (бегунок)
   ========================================================================== */
.ticker { background: var(--white); border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: stretch; height: 48px; padding-left: 0; padding-right: 0; }
.ticker__label {
	flex: none; display: flex; align-items: center; gap: 10px; padding: 0 22px 0 20px;
	background: var(--red); color: var(--white); font: 800 12px/1 var(--f-ui); letter-spacing: .08em;
	text-transform: uppercase; position: relative; z-index: 2;
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.live-dot {
	width: 9px; height: 9px; border-radius: 50%; background: currentColor; position: relative; flex: none;
}
.live-dot::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor;
	animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.ticker__viewport {
	flex: 1; overflow: hidden; position: relative; display: flex; align-items: center;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.ticker__track {
	display: flex; width: max-content; will-change: transform;
	animation: ticker var(--ticker-duration, 80s) linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track,
.ticker.is-paused .ticker__track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.ticker__list { list-style: none; display: flex; align-items: center; flex: none; }
.ticker__item { display: flex; align-items: center; gap: 10px; padding: 0 28px 0 0; white-space: nowrap; font-size: 14.5px; }
.ticker__item::before {
	content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); margin-right: 18px; flex: none;
}
.ticker__item time {
	font: 700 12px/1 var(--f-ui); color: var(--sky); background: var(--sky-soft); padding: 5px 8px; border-radius: 6px;
}
.ticker__item a { font-weight: 600; color: var(--ink); }
.ticker__item a:hover { color: var(--red); }

.ticker__toggle {
	flex: none; width: 48px; border: 0; border-left: 1px solid var(--line); background: var(--white);
	color: var(--navy); font-size: 11px;
}
.ticker__toggle:hover { background: var(--paper); }
.ticker__play { display: none; }
.ticker.is-paused .ticker__play { display: inline; }
.ticker.is-paused .ticker__pause { display: none; }

/* ==========================================================================
   5. Карточкалар
   ========================================================================== */
.post-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.post-card__media {
	display: block; position: relative; overflow: hidden; border-radius: var(--radius);
	aspect-ratio: 16 / 10; background: var(--navy-2);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__format {
	position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--red);
}
.thumb-placeholder {
	position: absolute; inset: 0; display: grid; place-items: center;
	background:
		var(--ornament) repeat center / 48px 16px,
		linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, var(--sky) 140%);
}
.thumb-placeholder span {
	font: 700 15px/1 var(--f-head); color: rgba(255, 255, 255, .85); letter-spacing: .15em; text-transform: uppercase;
	background: var(--navy); padding: 8px 14px; border-radius: 4px;
}

.post-card__body { padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 19px; margin: 0 0 8px; font-weight: 700; }
.post-card__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s ease, color .2s; }
.post-card__title a:hover { color: var(--navy-3); background-size: 100% 1.5px; }
.post-card__excerpt { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.post-card__meta {
	margin-top: auto; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12.5px;
}
.post-card__meta > * { display: inline-flex; align-items: center; gap: 5px; }
.post-card__meta .icon { width: 14px; height: 14px; opacity: .7; }

/* hero */
.post-card--hero .post-card__title { font-size: clamp(22px, 2.4vw, 28px); }

/* list */
.post-card--list { flex-direction: row; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-card--list:first-child { padding-top: 0; }
.post-card--list:last-child { border-bottom: 0; padding-bottom: 0; }
.post-card--list .post-card__media { width: 112px; flex: none; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.post-card--list .post-card__body { padding-top: 0; }
.post-card--list .badge { margin-bottom: 5px; font-size: 10px; }
.post-card--list .post-card__title { font-size: 15.5px; line-height: 1.35; margin-bottom: 6px; }
.post-card--list .thumb-placeholder span { font-size: 9px; padding: 4px 6px; }

/* mini */
.post-card--mini { padding: 14px 0 14px 18px; border-top: 1px solid var(--line); }
.post-card--mini::before {
	content: ""; position: absolute; left: 0; top: 22px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}
.post-card--mini .post-card__body { padding: 0; }
.post-card--mini .post-card__title { font-size: 16px; line-height: 1.4; margin-bottom: 4px; }

/* overlay */
.post-card--overlay { border-radius: var(--radius); overflow: hidden; isolation: isolate; color: var(--white); }
.post-card--overlay .post-card__media { aspect-ratio: auto; position: absolute; inset: 0; border-radius: 0; }
.post-card--overlay .post-card__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(8, 20, 38, .05) 0%, rgba(8, 20, 38, .45) 40%, rgba(8, 20, 38, .8) 70%, rgba(8, 20, 38, .95) 100%);
}
.post-card--overlay .post-card__body {
	position: relative; z-index: 2; margin-top: auto; flex: none; padding: 26px; pointer-events: none;
}
.post-card--overlay .post-card__body a { pointer-events: auto; }
.post-card--overlay .badge {
	align-self: flex-start; background: var(--gold); color: var(--navy); padding: 6px 10px; border-radius: 4px;
}
.post-card--overlay .post-card__title { color: var(--white); text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.post-card--overlay .post-card__title a:hover { color: var(--white); }
.post-card--overlay .post-card__meta { color: rgba(255, 255, 255, .8); }
.post-card--overlay .post-card__excerpt { color: rgba(255, 255, 255, .82); }
.post-card--overlay .post-card__format { top: 18px; right: 18px; bottom: auto; }

/* ==========================================================================
   6. Басты бет
   ========================================================================== */
.hero { padding: 32px 0 40px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gap); }
.hero__main { display: grid; gap: var(--gap); }
.hero__main > .post-card--overlay { min-height: 460px; }
.hero__main > .post-card--overlay .post-card__title { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; }
.hero__main > .post-card--overlay .post-card__body { padding: 36px; max-width: 760px; }
.hero__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

.feed {
	background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
	display: flex; flex-direction: column; overflow: hidden; align-self: start;
	position: sticky; top: 72px;
}
.admin-bar .feed { top: 104px; }
.feed__head {
	display: flex; align-items: center; gap: 12px; padding: 18px 22px; color: var(--red);
	border-bottom: 1px solid var(--line);
}
.feed__head h2 { margin: 0; font: 800 15px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.feed__list { list-style: none; max-height: 640px; overflow-y: auto; scrollbar-width: thin; }
.feed__item {
	display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 22px; position: relative;
	border-bottom: 1px dashed var(--line);
}
.feed__item time { display: flex; flex-direction: column; line-height: 1.25; border-right: 1px solid var(--line); padding-right: 10px; }
.feed__item time strong { font-size: 15px; color: var(--sky); }
.feed__item time span { font-size: 11px; color: var(--muted); }
.feed__item a { font: 600 14.5px/1.4 var(--f-ui); color: var(--ink); }
.feed__item a:hover { color: var(--sky); }
.feed__all {
	display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; margin-top: auto;
	font-weight: 700; font-size: 14px; color: var(--navy); background: var(--paper);
}
.feed__all:hover { background: var(--navy); color: var(--white); }

.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); position: relative;
}
.section-head::after {
	content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: var(--gold);
}
.section-head__title { margin: 0; font-size: 26px; display: flex; align-items: center; gap: 12px; }
.section-head__title::before {
	content: ""; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); flex: none;
}
.section-head__more {
	display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--sky);
	text-transform: uppercase; letter-spacing: .05em;
}
.section-head__more:hover .icon { transform: translateX(3px); }
.section-head__more .icon { transition: transform .2s; }
.section-head--light { border-color: rgba(255, 255, 255, .3); }
.section-head--light .section-head__title { color: var(--white); }
.section-head--light .section-head__more { color: var(--gold); }

.band { padding: 44px 0 48px; }
.band--official {
	background:
		radial-gradient(1000px 300px at 90% -10%, rgba(11, 179, 217, .25), transparent 60%),
		linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
	color: var(--white); position: relative;
}
.band--official::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px;
	background: var(--ornament) repeat-x center / 48px 16px; opacity: .35;
}
.band--official .post-card__title,
.band--official .post-card__title a { color: var(--white); }
.band--official .post-card__meta { color: rgba(255, 255, 255, .65); }
.band--official .post-card__excerpt { color: rgba(255, 255, 255, .7); }
.band--official .badge { color: var(--gold); }
.band--official .post-card__media { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

.band--media { background: var(--ink); color: var(--white); }
.media-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 18px; }
.media-grid .post-card--overlay:first-child { grid-row: span 2; }
.media-grid .post-card--overlay:first-child .post-card__title { font-size: 28px; }
.media-grid .post-card--overlay:nth-child(4) { grid-column: span 2; }
.media-grid .post-card--overlay .post-card__title { font-size: 18px; }
.media-grid .post-card--overlay .post-card__body { padding: 20px; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--4 .post-card__title { font-size: 17px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 44px; padding-bottom: 44px; }
.block { margin-bottom: 48px; }
.block:last-child { margin-bottom: 0; }
.block--more { padding-top: 44px; padding-bottom: 56px; }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--gap); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.duo__col .section-head__title { font-size: 22px; }
.duo__col .post-card--card { margin-bottom: 6px; }

/* ==========================================================================
   7. Бүйір панель
   ========================================================================== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.box { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.box__title {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	font: 800 14px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--ink);
	padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.box__title span { display: inline-flex; align-items: center; gap: 10px; }
.box__title span::before { content: ""; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
.box__title a { color: var(--sky); }
.box--accent { border-top: 4px solid var(--sky); }
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }

.box--pdf { padding: 0; overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: var(--white); }
.pdf-card { padding: 22px; position: relative; }
.pdf-card__head {
	display: flex; align-items: center; gap: 10px; font: 800 13px/1 var(--f-ui); text-transform: uppercase;
	letter-spacing: .08em; color: var(--gold); margin-bottom: 18px;
}
.pdf-card__head .icon { width: 22px; height: 22px; }
.pdf-card__cover {
	display: block; position: relative; border-radius: 6px; overflow: hidden; margin: 0 auto 16px;
	max-width: 240px; box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .7), 0 0 0 6px rgba(255, 255, 255, .06);
	transform: perspective(900px) rotateY(-6deg); transition: transform .35s ease;
}
.pdf-card__cover:hover { transform: none; }
.pdf-card__cover img { width: 100%; }
.pdf-card__hover {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
	background: rgba(11, 37, 69, .72); color: var(--white); font-weight: 700; opacity: 0; transition: opacity .25s;
}
.pdf-card__cover:hover .pdf-card__hover { opacity: 1; }
.pdf-card__note { text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.pdf-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdf-card .btn--primary { background: var(--gold); color: var(--navy); }
.pdf-card .btn--primary:hover { background: var(--white); color: var(--navy); }
.pdf-card .btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .3); }
.pdf-card .btn--ghost:hover { border-color: var(--white); color: var(--white); }

.ranked { list-style: none; counter-reset: rank; }
.ranked li {
	counter-increment: rank; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px;
	padding: 12px 0; border-bottom: 1px solid var(--line);
}
.ranked li:first-child { padding-top: 0; }
.ranked li:last-child { border-bottom: 0; padding-bottom: 0; }
.ranked li::before {
	content: counter(rank, decimal-leading-zero); grid-row: span 2;
	font: 700 26px/1 var(--f-head); color: var(--sky); opacity: .35;
}
.ranked a { font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink); }
.ranked a:hover { color: var(--sky); }
.ranked__meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ranked__meta .icon { width: 13px; height: 13px; }

.contact-list { list-style: none; display: grid; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--sky); margin-top: 3px; }
.socials--box a { background: var(--sky-soft); color: var(--navy); width: 36px; height: 36px; }
.socials--box a:hover { background: var(--navy); color: var(--white); }

/* ==========================================================================
   8. Мақала
   ========================================================================== */
.entry { background: var(--white); border-radius: var(--radius); padding: 40px 48px; box-shadow: var(--shadow); }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs__cat {
	color: var(--white); background: var(--sky); padding: 5px 10px; border-radius: 4px;
	font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
}
.crumbs__cat:hover { background: var(--navy); color: var(--white); }
.entry__title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin-bottom: 16px; letter-spacing: -.01em; }
.entry__lead { font: italic 400 20px/1.55 var(--f-head); color: var(--navy-3); border-left: 3px solid var(--gold); padding-left: 18px; }
.entry__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--muted); font-size: 13.5px;
	padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0 28px;
}
.entry__meta > * { display: inline-flex; align-items: center; gap: 6px; }
.entry__author { color: var(--ink); font-weight: 600; }
.entry__author img { border-radius: 50%; margin-right: 4px; }
.entry__media { margin: 0 0 30px; }
.entry__media img { width: 100%; border-radius: var(--radius); }
.entry__media figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }

.entry__content { font: 400 18.5px/1.75 var(--f-head); color: #22262d; }
.entry__content > * { margin: 0 0 1.15em; }
.entry__content h2 { font-size: 28px; margin-top: 1.6em; }
.entry__content h3 { font-size: 23px; margin-top: 1.4em; }
.entry__content a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.entry__content ul, .entry__content ol { padding-left: 1.4em; }
.entry__content blockquote {
	margin: 1.6em 0; padding: 22px 26px; background: var(--gold-soft); border-left: 4px solid var(--gold);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; font-size: 20px;
}
.entry__content blockquote p:last-child { margin: 0; }
.entry__content img { border-radius: var(--radius-sm); }
.entry__content figure { margin-left: 0; margin-right: 0; }
.entry__content figcaption { font: 400 13px/1.5 var(--f-ui); color: var(--muted); padding-top: 8px; }
.entry__content table { width: 100%; border-collapse: collapse; font: 15px var(--f-ui); }
.entry__content th, .entry__content td { border: 1px solid var(--line); padding: 10px; }
.entry__content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.entry__content .alignright { float: right; margin: 0 0 1em 1.5em; }
.entry__content .aligncenter { margin-left: auto; margin-right: auto; }

.entry__footer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.entry__tags a { font-size: 13px; padding: 6px 12px; background: var(--paper); border-radius: 999px; color: var(--text); }
.entry__tags a::before { content: "#"; color: var(--gold); }
.entry__tags a:hover { background: var(--navy); color: var(--white); }
.share { display: flex; align-items: center; gap: 8px; }
.share__label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.share__btn {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; color: var(--white);
	transition: transform .2s, opacity .2s;
}
.share__btn:hover { transform: translateY(-2px); color: var(--white); }
.share__btn--wa { background: #25d366; }
.share__btn--tg { background: #229ed9; }
.share__btn--fb { background: #1877f2; }
.share__btn--copy { background: var(--navy); }
.share__btn.is-done { background: var(--gold); }

.related { margin-top: 44px; }
.related .post-card__title { font-size: 17px; }

.comments { margin-top: 44px; }
.comment-list { list-style: none; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: 15px var(--f-ui);
}
.comment-form .submit { background: var(--navy); color: var(--white); border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 700; }
.comment-form .submit:hover { background: var(--sky); }

/* ==========================================================================
   9. Архив, PDF мұрағат, 404
   ========================================================================== */
.archive-head {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white);
	padding: 44px 0 48px; position: relative;
}
.archive-head::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
	background: var(--ornament) repeat-x center / 48px 16px; opacity: .4;
}
.archive-head__kicker {
	display: inline-block; font: 800 12px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase;
	color: var(--navy); background: var(--gold); padding: 6px 10px; border-radius: 4px; margin-bottom: 14px;
}
.archive-head__title { color: var(--white); font-size: clamp(30px, 4vw, 46px); margin: 0; }
.archive-head__desc { color: rgba(255, 255, 255, .75); max-width: 680px; margin-top: 12px; }
.archive-head__desc p { margin: 0; }
.archive-head__search { max-width: 560px; margin-top: 20px; }
.archive-lead { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.archive-lead .post-card--hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.archive-lead .post-card--hero .post-card__body { padding: 0; }

.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
	background: var(--white); box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
}
.page-numbers.current { background: var(--navy); color: var(--white); }
.page-numbers:hover:not(.current) { background: var(--gold); color: var(--navy); }

.pdf-page { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; padding-top: 44px; padding-bottom: 56px; align-items: start; }
.pdf-page__latest { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); border-radius: var(--radius); color: var(--white); position: sticky; top: 80px; box-shadow: var(--shadow-lg); }
.pdf-card--large .pdf-card__cover { max-width: 280px; }
.pdf-archive-content { font-family: var(--f-ui); font-size: 16px; }
/* Мұрағаттағы мұқабалар тор түрінде */
.pdf-archive-content .wp-block-gallery,
.pdf-archive-content .gallery,
.pdf-archive-content .wp-block-columns,
.pdf-archive-content .pdf-grid {
	display: grid !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px;
}
.pdf-archive-content .wp-block-column { flex-basis: auto !important; }
.pdf-archive-content figure,
.pdf-archive-content .wp-block-image,
.pdf-archive-content .gallery-item {
	width: auto !important; margin: 0 !important; background: var(--white); border-radius: var(--radius-sm);
	padding: 10px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.pdf-archive-content figure:hover,
.pdf-archive-content .wp-block-image:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pdf-archive-content figure img { width: 100%; height: auto; border-radius: 4px; }
.pdf-archive-content figcaption { text-align: center; font-weight: 600; color: var(--ink); }
.pdf-archive-content .wp-block-file {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--white);
	padding: 14px 18px; border-radius: var(--radius-sm); box-shadow: var(--shadow); margin-bottom: 12px;
}
.pdf-archive-content .wp-block-file__button { background: var(--navy); border-radius: 999px; padding: 8px 16px; color: var(--white); text-decoration: none; }

.empty { background: var(--white); border-radius: var(--radius); padding: 48px; text-align: center; box-shadow: var(--shadow); }
.empty .search-form { max-width: 480px; margin: 20px auto; }
.empty--404 { margin: 56px auto; max-width: 720px; }
.empty__code { display: block; font: 700 120px/1 var(--f-head); color: var(--navy); letter-spacing: -.04em; }
.empty__code::after { content: ""; display: block; height: 16px; margin: 12px auto 20px; width: 192px; background: var(--ornament) repeat-x center / 48px 16px; }

/* ==========================================================================
   10. Футер
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: 14.5px; margin-top: 0; position: relative; }
.footer__ornament { height: 6px; background: linear-gradient(90deg, var(--sky) 0 33%, var(--gold) 33% 66%, var(--red) 66%); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 44px; }
.footer__logo .custom-logo { max-height: 70px; width: auto; filter: brightness(0) invert(1); }
.footer__logo .brand__text { color: var(--white); }
.footer__about { margin: 16px 0 18px; }
.footer__title {
	font: 800 13px/1 var(--f-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--white);
	margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); position: relative;
}
.footer__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 36px; height: 2px; background: var(--gold); }
.footer__people { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.footer__people li { display: flex; flex-direction: column; color: var(--white); font-weight: 600; }
.footer__people span { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .55); }
.footer__contacts { list-style: none; display: grid; gap: 14px; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts .icon { color: var(--gold); margin-top: 3px; }
.footer__contacts a:hover, .site-footer a:hover { color: var(--gold); }
.footer__menu, .site-footer .menu { list-style: none; display: grid; gap: 8px; }
.site-footer .menu a::before, .footer__menu a::before { content: "›"; color: var(--gold); margin-right: 8px; }
.socials--footer a { background: rgba(255, 255, 255, .08); color: var(--white); width: 38px; height: 38px; }
.socials--footer a:hover { background: var(--gold); color: var(--navy); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.footer__bottom p { margin: 0; }
.footer__pdf { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; flex: none; }

.to-top {
	position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: var(--gold); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--white); }

/* WordPress міндетті класстары */
.wp-caption, .gallery-caption { font-size: 13px; color: var(--muted); }
.sticky, .bypostauthor { position: relative; }
.alignwide, .alignfull { max-width: 100%; }

/* ==========================================================================
   11. Бейімделу
   ========================================================================== */
@media (max-width: 1180px) {
	.hero__grid { grid-template-columns: minmax(0, 1fr) 300px; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.navbar .menu > li > a { padding: 17px 10px; font-size: 13.5px; }
	.navbar .menu > li.menu-item-has-children > a { padding-right: 24px; }
	.navbar .menu-item-has-children > a::before { right: 9px; }
	.navbar .menu > li > a::after { left: 10px; right: 10px; }
}

/* Кішкентай ноутбук / жартылай терезе: компьютер нұсқасы сақталады */
@media (max-width: 980px) {
	.navbar .menu { flex-wrap: nowrap; }
	.navbar .menu > li > a { padding: 17px 8px; font-size: 13px; letter-spacing: 0; white-space: nowrap; }
	.navbar .menu > li.menu-item-has-children > a { padding-right: 20px; }
	.navbar .menu-item-has-children > a::before { right: 6px; width: 5px; height: 5px; }
	.hero__grid { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
	.hero__main > .post-card--overlay { min-height: 400px; }
	.hero__main > .post-card--overlay .post-card__body { padding: 26px; }
	.feed__item { grid-template-columns: 60px 1fr; padding: 12px 16px; gap: 10px; }
	.feed__head { padding: 16px; }
	.layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
	.split { grid-template-columns: 1fr; }
	.masthead__issue small { display: none; }
	.entry { padding: 30px 28px; }
}

@media (max-width: 820px) {
	.hero__grid, .layout, .pdf-page { grid-template-columns: 1fr; }
	.feed { position: static; }
	.feed__list { max-height: none; }
	.pdf-page__latest { position: static; max-width: 420px; }
	.duo { grid-template-columns: 1fr; }
	.media-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; grid-auto-rows: 220px; }
	.media-grid .post-card--overlay:first-child { grid-column: span 2; grid-row: auto; min-height: 320px; }
	.media-grid .post-card--overlay:nth-child(4) { grid-column: auto; }
	.masthead__issue { display: none; }
	.header-banner { display: none; }
	.entry { padding: 28px 24px; }

	/* Мобильді мәзір */
	.navbar__burger { display: inline-flex; }
	.navbar__inner { flex-wrap: wrap; justify-content: space-between; }
	.navbar__menu { display: none; order: 3; flex-basis: 100%; padding-bottom: 12px; }
	.navbar.is-open .navbar__menu { display: block; }
	.navbar .menu { flex-direction: column; }
	.navbar .menu > li { border-top: 1px solid rgba(255, 255, 255, .08); }
	.navbar .menu > li > a,
	.navbar .menu > li.menu-item-has-children > a { padding: 14px 4px; font-size: 15px; }
	.navbar .menu > li > a::after, .navbar .menu-item-has-children > a::before { display: none; }
	.navbar .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none;
		background: rgba(255, 255, 255, .05); border: 0; border-radius: var(--radius-sm); margin-bottom: 10px;
	}
	.navbar .sub-menu a { color: rgba(255, 255, 255, .85); }
	.navbar .sub-menu a:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
	.navbar li.is-open > .sub-menu { display: block; }
	.submenu-toggle {
		display: grid; place-items: center; position: absolute; right: 0; top: 6px; width: 40px; height: 40px;
		border: 0; background: rgba(255, 255, 255, .08); color: var(--white); border-radius: 8px;
	}
	.navbar li.is-open > .submenu-toggle span { display: inline-block; transform: rotate(180deg); }
}

@media (max-width: 640px) {
	:root { --gap: 20px; }
	.topbar .socials--top { display: none; }
	.masthead__inner { padding: 16px 20px 26px; justify-content: center; text-align: center; }
	.brand { align-items: center; }
	.brand .custom-logo { max-height: 64px; }
	.ticker__label { padding: 0 14px 0 14px; font-size: 0; gap: 0; }
	.ticker__label .live-dot { margin: 0 6px; }
	.ticker__label::after { content: "Таспа"; font-size: 11px; }
	.hero { padding-top: 20px; }
	.hero__main > .post-card--overlay { min-height: 380px; }
	.hero__main > .post-card--overlay .post-card__body { padding: 22px; }
	.hero__pair, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.media-grid { grid-template-columns: 1fr; }
	.media-grid .post-card--overlay:first-child { grid-column: auto; }
	.archive-lead .post-card--hero { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.footer__bottom-inner { flex-direction: column; text-align: center; }
	.entry { padding: 22px 18px; border-radius: 0; margin: 0 -20px; }
	.entry__content { font-size: 17.5px; }
	.search-form__btn span { display: none; }
	.admin-bar .navbar { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.ticker__track { animation: none !important; }
	.ticker__viewport { overflow-x: auto; }
	.ticker__list[aria-hidden="true"] { display: none; }
}

@media print {
	.topbar, .navbar, .ticker, .sidebar, .site-footer, .share, .related, .comments, .to-top { display: none !important; }
	.layout { display: block; }
	.entry { box-shadow: none; padding: 0; }
}
