/*
Theme Name: Стефан Банков
Theme URI: https://stefanbankov.com/
Description: Личен сайт и блог на д-р Стефан Банков – представяне, биография, книга и публикации.
Author: Stefan Bankov
Version: 1.0.0
Text Domain: stefanbankov
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
*/

/* ---------- Токени ---------- */
:root {
	--navy: #14243f;
	--navy-deep: #0d1828;
	--navy-2: #1e3558;
	--red: #a8212a;
	--red-hover: #8a1a22;
	--ink: #1d2433;
	--muted: #5d6676;
	--bg: #fbfaf7;
	--alt: #f2f0eb;
	--card: #ffffff;
	--line: #e3dfd5;
	--radius: 14px;
	--shadow: 0 18px 40px -22px rgba(20, 36, 63, 0.35);
	--font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--font-head: "Merriweather", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--navy-2);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--red);
}

:focus-visible {
	outline: 3px solid rgba(168, 33, 42, 0.55);
	outline-offset: 3px;
	border-radius: 4px;
}

h1,
h2,
h3 {
	color: var(--navy);
	line-height: 1.2;
	margin: 0 0 0.6em;
}

h1 {
	font-family: var(--font-head);
	font-size: clamp(2.1rem, 4.2vw, 3.3rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

h2 {
	font-family: var(--font-head);
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 700;
}

h3 {
	font-family: var(--font-body);
	font-size: 1.15rem;
	font-weight: 600;
}

p {
	margin: 0 0 1.1em;
}

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

.narrow {
	max-width: 820px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	background: var(--navy);
	color: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	z-index: 100;
}

.skip-link:focus {
	top: 12px;
}

/* ---------- Заглавна част ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(251, 250, 247, 0.92);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	gap: 20px;
}

.brand {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	line-height: 1.2;
}

.brand:hover {
	color: inherit;
}

.brand-name {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--navy);
}

.brand-tag {
	font-size: 0.78rem;
	color: var(--muted);
	letter-spacing: 0.02em;
	margin-top: 2px;
}

.primary-nav .menu {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav .menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 500;
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a {
	background: var(--navy);
	color: #fff;
}

.nav-toggle {
	display: none;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line);
	background: var(--card);
	border-radius: 10px;
	cursor: pointer;
	position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
	display: block;
	position: absolute;
	left: 13px;
	width: 18px;
	height: 2px;
	background: var(--navy);
	border-radius: 2px;
	content: "";
	transition: transform 0.2s;
}

.nav-toggle-bars {
	top: 22px;
}

.nav-toggle-bars::before {
	top: -6px;
	left: 0;
}

.nav-toggle-bars::after {
	top: 6px;
	left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Бутони ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.98rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
	white-space: nowrap;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--red);
	color: #fff;
}

.btn-primary:hover {
	background: var(--red-hover);
	color: #fff;
}

.btn-ghost {
	border-color: var(--navy);
	color: var(--navy);
}

.btn-ghost:hover {
	background: var(--navy);
	color: #fff;
}

.btn-outline {
	border-color: var(--navy);
	color: var(--navy);
	background: transparent;
}

.btn-outline:hover {
	background: var(--navy);
	color: #fff;
}

.btn-light {
	background: #fff;
	color: var(--navy);
}

.btn-light:hover {
	background: var(--alt);
	color: var(--navy);
}

.text-link {
	font-weight: 600;
	text-decoration: none;
	color: var(--red);
}

.text-link:hover {
	text-decoration: underline;
}

.eyebrow,
.section-kicker {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--red);
	margin: 0 0 14px;
}

.section-kicker-light {
	color: #f0b7bb;
}

/* ---------- Начало ---------- */
.hero {
	padding: 72px 0 64px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 64px;
	align-items: center;
}

.hero-lead {
	font-size: 1.12rem;
	color: var(--muted);
	max-width: 58ch;
	margin-bottom: 2em;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero-photo {
	margin: 0;
	position: relative;
}

.hero-photo::before {
	content: "";
	position: absolute;
	inset: 24px -18px -18px 24px;
	background: var(--alt);
	border-radius: 20px;
	z-index: -1;
}

.hero-photo img {
	width: 100%;
	border-radius: 18px;
	box-shadow: var(--shadow);
	object-fit: cover;
	aspect-ratio: 1489 / 1056;
}

.stats {
	background: var(--navy);
	color: #fff;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.stat {
	padding: 34px 20px;
	border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:last-child {
	border-right: 0;
}

.stat-value {
	display: block;
	font-family: var(--font-head);
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 6px;
}

.stat-label {
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.45;
	display: block;
}

.section {
	padding: 96px 0;
}

.section-alt {
	background: var(--alt);
}

.section-dark {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
	color: #e8ecf3;
}

.section-dark h2 {
	color: #fff;
}

.section-dark p {
	color: #d4dbe7;
}

.section-head {
	margin-bottom: 44px;
	max-width: 680px;
}

.section-head-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	flex-wrap: wrap;
	max-width: none;
}

.split {
	display: grid;
	grid-template-columns: 1fr 1.7fr;
	gap: 56px;
	align-items: start;
}

.split > div:first-child h2 {
	max-width: 14ch;
}

.prose {
	max-width: 68ch;
}

.prose p {
	color: #2c3445;
}

.prose h2 {
	margin-top: 0.4em;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-top: 3px solid var(--red);
	border-radius: var(--radius);
	padding: 30px 28px;
	transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.card p {
	color: var(--muted);
	font-size: 0.97rem;
	margin: 0;
}

.cert-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 4px solid var(--navy);
	border-radius: var(--radius);
	padding: 26px 28px;
	margin-top: 24px;
}

.cert-title {
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 6px;
	font-size: 1.05rem;
}

.cert-card p {
	margin: 0;
	max-width: 52ch;
}

.footer-muted {
	color: var(--muted);
	font-size: 0.95rem;
}

/* ---------- Книга ---------- */
.book-feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}

.book-cover {
	margin: 0;
	position: relative;
}

.book-cover img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}


.book-subtitle {
	font-style: italic;
	color: var(--muted);
	margin-bottom: 1.4em;
}

.section-dark .book-subtitle {
	color: #b9c4d6;
}

.book-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin: 0 0 30px;
}

.book-meta dt,
.biblio dt {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #9fb0c9;
	font-weight: 600;
}

.book-meta dd {
	margin: 2px 0 0;
	color: #fff;
	font-weight: 500;
}

.book-feature-page .book-feature-text h1 {
	color: var(--navy);
}

.book-feature-page .book-subtitle {
	color: var(--muted);
}

.book-feature-page .page-lead {
	margin-bottom: 0;
}

.biblio {
	margin: 0;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.biblio > div {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 20px;
	padding: 16px 26px;
	border-bottom: 1px solid var(--line);
}

.biblio > div:last-child {
	border-bottom: 0;
}

.biblio dt {
	color: var(--muted);
	padding-top: 3px;
}

.biblio dd {
	margin: 0;
	color: var(--ink);
	font-weight: 500;
}

.book-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.book-cta h2 {
	margin-bottom: 0.3em;
}

.book-cta p {
	margin: 0;
}

.book-cta-plain {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 40px;
}

.book-cta-plain p {
	color: var(--muted);
}

/* ---------- Страница „За мен“ ---------- */
.page-hero {
	padding: 72px 0 40px;
}

.page-hero-grid {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 64px;
	align-items: center;
}

.page-hero-photo {
	margin: 0;
}

.page-hero-photo img {
	width: 100%;
	border-radius: 18px;
	box-shadow: var(--shadow);
	aspect-ratio: 1000 / 1318;
	object-fit: cover;
}

.page-lead {
	font-size: 1.15rem;
	color: var(--muted);
	max-width: 62ch;
}

.page-meta {
	font-size: 0.92rem;
	color: var(--navy-2);
	font-weight: 600;
	letter-spacing: 0.01em;
}

.timeline,
.edu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	max-width: 820px;
}

.timeline li,
.edu-list li {
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: 24px;
	padding: 18px 0 18px 28px;
	position: relative;
	border-left: 2px solid var(--line);
}

.timeline li::before,
.edu-list li::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 26px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--red);
	box-shadow: 0 0 0 4px var(--alt);
}

.edu-list li::before {
	background: var(--navy);
	box-shadow: 0 0 0 4px var(--bg);
}

.timeline-years,
.edu-years {
	font-weight: 700;
	color: var(--red);
	font-size: 0.95rem;
	padding-top: 2px;
}

.edu-years {
	color: var(--navy-2);
}

.timeline strong,
.edu-list strong {
	display: block;
	color: var(--navy);
	font-weight: 600;
	line-height: 1.4;
}

.timeline span,
.edu-list span {
	display: block;
	color: var(--muted);
	font-size: 0.95rem;
}

.edu-list {
	max-width: none;
}

/* ---------- Блог ---------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

.post-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s, transform 0.25s;
}

.post-card:hover {
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.post-card-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card-body {
	padding: 26px 26px 28px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card-title {
	font-family: var(--font-head);
	font-size: 1.22rem;
	margin: 6px 0 10px;
	line-height: 1.35;
}

.post-card-title a {
	color: var(--navy);
	text-decoration: none;
}

.post-card-title a:hover {
	color: var(--red);
}

.post-card-excerpt {
	color: var(--muted);
	font-size: 0.97rem;
	margin-bottom: 18px;
	flex: 1;
}

.post-meta {
	font-size: 0.85rem;
	color: var(--muted);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.post-meta a {
	color: var(--red);
	font-weight: 600;
	text-decoration: none;
}

.post-meta .dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--muted);
}

.article-header {
	padding-top: 64px;
}

.article-header h1 {
	margin-top: 12px;
}

.article-figure {
	margin: 0 0 40px;
}

.article-figure img {
	width: 100%;
	border-radius: var(--radius);
}

.article-body {
	padding: 24px 0 40px;
}

.article-body h2,
.article-body h3 {
	margin-top: 1.6em;
}

.article-body img {
	border-radius: 10px;
	margin: 1.4em 0;
}

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 96px;
	border-top: 1px solid var(--line);
	padding-top: 28px;
	flex-wrap: wrap;
}

.post-nav-next {
	text-align: right;
	margin-left: auto;
}

.pagination {
	margin-top: 56px;
	text-align: center;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--navy);
	text-decoration: none;
	font-weight: 600;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

/* ---------- Долна част ---------- */
.site-footer {
	background: var(--navy-deep);
	color: #b7c2d4;
	padding-top: 64px;
	font-size: 0.95rem;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 48px;
}

.footer-name {
	font-family: var(--font-head);
	font-size: 1.25rem;
	color: #fff;
	margin-bottom: 10px;
}

.site-footer .footer-muted {
	color: #97a4bb;
	max-width: 42ch;
}

.footer-heading {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.78rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 14px;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links li {
	margin-bottom: 9px;
}

.footer-links a {
	color: #c9d3e3;
	text-decoration: none;
}

.footer-links a:hover {
	color: #fff;
	text-decoration: underline;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 22px 0;
	font-size: 0.88rem;
	color: #8592a9;
}

.footer-bottom p {
	margin: 0;
}

/* ---------- 404 и общи ---------- */
.page-hero + .section,
.page-hero + .container {
	padding-bottom: 96px;
}

/* ---------- Адаптивност ---------- */
@media (max-width: 1024px) {
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat:nth-child(2) {
		border-right: 0;
	}

	.stat:nth-child(-n + 2) {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.split {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.split > div:first-child h2 {
		max-width: none;
	}
}

@media (max-width: 860px) {
	body {
		font-size: 16px;
	}

	.nav-toggle {
		display: block;
	}

	.primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--card);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 30px -18px rgba(20, 36, 63, 0.35);
		padding: 8px 20px 18px;
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav .menu {
		flex-direction: column;
		gap: 2px;
	}

	.primary-nav .menu a {
		border-radius: 10px;
		padding: 13px 14px;
	}

	.hero {
		padding: 48px 0 40px;
	}

	.hero-grid,
	.page-hero-grid,
	.book-feature {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.hero-photo {
		max-width: 440px;
		margin: 0 auto;
		width: 100%;
	}

	.hero-photo::before {
		inset: 16px -10px -10px 16px;
	}

	.page-hero-photo {
		max-width: 300px;
	}

	.book-feature {
		justify-items: center;
	}

	.book-feature-text {
		text-align: left;
		width: 100%;
	}

	.section {
		padding: 64px 0;
	}

	.page-hero {
		padding: 44px 0 24px;
	}

	.timeline li,
	.edu-list li {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.biblio > div {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 14px 20px;
	}

	.book-cta-plain {
		padding: 28px 22px;
	}

	.footer-inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 560px) {
	.container {
		padding: 0 16px;
	}

	.stats-grid {
		grid-template-columns: 1fr 1fr;
	}

	.stat {
		padding: 26px 14px;
	}

	.stat-value {
		font-size: 1.8rem;
	}

	.hero-actions .btn,
	.book-cta .btn {
		width: 100%;
	}

	.cert-card {
		padding: 22px 20px;
	}

	.card {
		padding: 24px 22px;
	}

	.post-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}

/* ---------- Публикации ---------- */
.pub-year {
	font-size: 1.35rem;
	margin: 48px 0 14px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
}

.pub-year:first-child {
	margin-top: 0;
}

.pub-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pub-item {
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
}

.pub-title {
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
	line-height: 1.5;
}

.pub-title:hover {
	color: var(--red);
	text-decoration: underline;
}

.pub-source p {
	font-size: 1rem;
	color: #2c3445;
}

/* ---------- Книги (начало и страница „Книга“) ---------- */
.book-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.book-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	text-decoration: none;
	color: #e8ecf3;
	transition: transform 0.25s;
}

.book-card:hover {
	transform: translateY(-4px);
	color: #fff;
}

.book-card img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.7);
}

.book-card-year {
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #f0b7bb;
	font-weight: 700;
}

.book-card-title {
	font-family: var(--font-head);
	font-size: 1.02rem;
	line-height: 1.4;
	color: #fff;
}

.biblio-compact > div {
	grid-template-columns: 170px 1fr;
	padding: 12px 20px;
}

@media (max-width: 860px) {
	.book-cards {
		grid-template-columns: 1fr;
		max-width: 420px;
		margin: 0 auto;
	}
}

/* ---------- Витрина с книги (маса, осветена отгоре) ---------- */
.showcase {
	position: relative;
	padding: 80px 0 110px;
	overflow: hidden;
	color: #f3ece2;
	background:
		radial-gradient(ellipse 55% 45% at 50% 0%, rgba(255, 238, 205, 0.5), rgba(255, 238, 205, 0) 72%),
		radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 200, 130, 0.12), rgba(255, 200, 130, 0) 70%),
		linear-gradient(180deg, #2e2119 0%, #1c140e 58%, #100b07 100%);
}

.showcase::after {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 26px;
	height: 1px;
	background: linear-gradient(90deg, rgba(255, 220, 160, 0), rgba(255, 220, 160, 0.35), rgba(255, 220, 160, 0));
	pointer-events: none;
}

.showcase .container {
	max-width: 1440px;
}

.showcase-row {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	align-items: end;
}

.showcase-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: inherit;
}

.showcase-item img {
	width: 100%;
	height: auto;
	-webkit-mask-image: radial-gradient(ellipse 62% 60% at 50% 48%, #000 58%, rgba(0, 0, 0, 0) 100%);
	mask-image: radial-gradient(ellipse 62% 60% at 50% 48%, #000 58%, rgba(0, 0, 0, 0) 100%);
	filter: drop-shadow(0 30px 26px rgba(0, 0, 0, 0.7));
	transition: transform 0.35s ease;
}

.showcase-item:hover img {
	transform: translateY(-8px);
}

.showcase-floor {
	display: block;
	width: 70%;
	height: 30px;
	margin-top: -14px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 70%);
}

.showcase-caption {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 18px;
	text-align: center;
	max-width: 34ch;
}

.showcase-year {
	font-size: 0.76rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #f0c98f;
	font-weight: 700;
}

.showcase-title {
	font-family: var(--font-head);
	font-size: 1.02rem;
	line-height: 1.4;
	color: #fff;
}

.section-showcase {
	padding-top: 96px;
}

.section-head-light h2 {
	color: var(--navy);
}

@media (max-width: 860px) {
	.showcase-row {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin: 0 auto;
	}
}

/* ---------- Публикации на началната страница ---------- */
.section-pubs {
	background:
		radial-gradient(ellipse 60% 50% at 100% 0%, rgba(168, 33, 42, 0.07), rgba(168, 33, 42, 0) 70%),
		var(--bg);
}

.pub-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.pub-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 28px 24px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
	color: var(--ink);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pub-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--red), var(--navy));
}

.pub-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow);
	border-color: transparent;
}

.pub-card-year {
	font-family: var(--font-head);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1;
	color: var(--red);
}

.pub-card-title {
	font-family: var(--font-head);
	font-size: 1rem;
	line-height: 1.45;
	color: var(--navy);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.pub-card-more {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--navy-2);
}

.pub-card:hover .pub-card-more {
	color: var(--red);
}

@media (max-width: 960px) {
	.pub-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.pub-cards {
		grid-template-columns: 1fr;
	}
}
