/*
Theme Name: BalkanMT
Template: astra
Description: Дочерняя тема Astra для balkanmt.com (NEWS-13): палитра, локальные шрифты, главная, оформление блоков Ukratko, Izvori, Ažurirano, Partnerski blok.
Version: 1.0.0
Text Domain: balkanmt-child
*/

/* Палитра и шрифты */
:root {
	--bmt-blue: #0B4F6C;
	--bmt-blue-dark: #083A50;
	--bmt-sand: #F4EDE1;
	--bmt-sand-line: #E2D6C2;
	--bmt-coral: #E4572E;
	--bmt-coral-dark: #C2441F;
	--bmt-ink: #1F2933;
	--bmt-muted: #52606D;
	--bmt-sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
	--bmt-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
}

body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
	font-family: var(--bmt-sans);
	color: var(--bmt-ink);
}

body {
	background: #fff;
	font-size: 18px;
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.site-title a {
	font-family: var(--bmt-serif);
	color: var(--bmt-ink);
	font-weight: 700;
	letter-spacing: 0;
}

h1, .entry-content h1 { font-size: 2.1rem; line-height: 1.25; }
h2, .entry-content h2 { font-size: 1.55rem; line-height: 1.3; }
h3, .entry-content h3 { font-size: 1.25rem; line-height: 1.35; }

a { color: var(--bmt-blue); }
a:hover, a:focus { color: var(--bmt-coral-dark); }

/* Шапка: синяя полоса */
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
	background: var(--bmt-blue);
	border-bottom: 0;
}

.site-header .site-title a,
.site-header .site-title a:hover,
.site-header .site-description {
	color: #fff;
}

.site-title a {
	font-size: 26px;
	font-weight: 900;
}

.main-header-menu .menu-link,
.ast-header-break-point .main-header-menu .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link {
	color: #fff;
	font-weight: 600;
	font-size: 17px;
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current-menu-ancestor > .menu-link {
	color: var(--bmt-sand) !important;
	box-shadow: inset 0 -3px 0 var(--bmt-coral);
}

.ast-mobile-menu-trigger-minimal,
.menu-toggle,
.ast-button-wrap .menu-toggle {
	color: #fff !important;
	background: transparent !important;
}

.ast-mobile-menu-trigger-minimal svg,
.menu-toggle .ast-mobile-svg {
	fill: #fff !important;
}

/* Мобильное меню раскрывается на синем фоне */
.ast-header-break-point .main-header-bar-navigation,
.ast-mobile-header-content,
.ast-header-break-point .main-navigation ul .menu-item .menu-link {
	background: var(--bmt-blue-dark);
	border-color: rgba(255, 255, 255, .12);
}

.ast-header-break-point .main-header-menu .menu-link,
.ast-mobile-header-content .menu-link,
.ast-mobile-header-content .menu-item > .menu-link {
	color: #fff !important;
}

.ast-mobile-header-content .menu-item:hover > .menu-link,
.ast-mobile-header-content .current-menu-item > .menu-link {
	color: var(--bmt-sand) !important;
	box-shadow: none;
}

/* Метка «partnerski link» в меню */
.bmt-partner-label {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: .04em;
	vertical-align: middle;
}

/* Контент */
.ast-separate-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-plain-container .site-content {
	background: #fff;
}

.single-post .site-content > .ast-container,
.page .site-content > .ast-container {
	max-width: 820px;
}

.entry-content > p,
.entry-content li {
	font-size: 1.05rem;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
	font-size: .95rem;
}

.entry-content th {
	background: var(--bmt-sand);
	text-align: left;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--bmt-sand-line);
	padding: 8px 10px;
}

/* Метка рубрики */
.bmt-rubric {
	display: inline-block;
	margin-bottom: 10px;
	padding: 2px 9px;
	border-radius: 3px;
	background: var(--bmt-coral);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: .05em;
	text-decoration: none;
}

a.bmt-rubric:hover,
a.bmt-rubric:focus {
	background: var(--bmt-coral-dark);
	color: #fff;
}

.entry-meta,
.entry-meta * {
	color: var(--bmt-muted);
	font-size: 15px;
}

/* Даты в начале записи и у таблиц */
.bmt-dates,
.bmt-azurirano {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 0 0 1.2em;
	color: var(--bmt-muted);
	font-size: 15px;
}

.bmt-dates__upd,
.bmt-azurirano {
	color: var(--bmt-blue);
	font-weight: 600;
}

.bmt-azurirano {
	display: block;
	margin: .4em 0 .8em;
}

/* Ukratko */
.bmt-ukratko {
	margin: 0 0 1.6em;
	padding: 18px 22px 14px;
	background: var(--bmt-sand);
	border-left: 5px solid var(--bmt-blue);
	border-radius: 0 6px 6px 0;
}

.bmt-ukratko__title,
.bmt-izvori__title {
	margin: 0 0 8px;
	font-family: var(--bmt-serif);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bmt-blue);
}

.bmt-ukratko ul {
	margin: 0 0 0 1.1em;
	padding: 0;
}

.bmt-ukratko li {
	margin-bottom: 6px;
	font-size: 1rem;
	line-height: 1.5;
}

.bmt-ukratko li::marker {
	color: var(--bmt-coral);
}

/* Izvori */
.bmt-izvori {
	margin: 2em 0 1em;
	padding-top: 14px;
	border-top: 2px solid var(--bmt-sand-line);
}

.bmt-izvori ol {
	margin: 0 0 0 1.3em;
	padding: 0;
}

.bmt-izvori li {
	margin-bottom: 4px;
	font-size: .95rem;
	word-break: break-word;
}

.bmt-byline {
	margin: 1em 0 0;
	color: var(--bmt-muted);
	font-size: 15px;
	font-weight: 600;
}

/* Partnerski blok */
.bmt-partner {
	position: relative;
	margin: 1.6em 0;
	padding: 30px 22px 16px;
	border: 2px solid var(--bmt-sand-line);
	border-radius: 6px;
	background: #fff;
}

.bmt-partner__label {
	position: absolute;
	top: -12px;
	left: 16px;
	margin: 0;
	padding: 1px 8px;
	background: var(--bmt-ink);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.bmt-partner__title {
	margin: 0 0 6px;
	font-family: var(--bmt-serif);
	font-size: 1.15rem;
	font-weight: 700;
}

.bmt-partner__text,
.bmt-partner__price {
	margin: 0 0 10px;
}

.bmt-partner__price {
	font-weight: 700;
}

.bmt-partner__checked {
	color: var(--bmt-muted);
	font-weight: 400;
	font-size: .9em;
}

.bmt-partner__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 12px;
}

.entry-content a.bmt-partner__btn,
a.bmt-partner__btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 4px;
	background: var(--bmt-coral);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

a.bmt-partner__btn:hover,
a.bmt-partner__btn:focus {
	background: var(--bmt-coral-dark);
	color: #fff;
}

.bmt-partner__brand {
	color: var(--bmt-muted);
	font-size: .95rem;
}

.bmt-partner__note {
	margin: 0;
	color: var(--bmt-muted);
	font-size: 14px;
	line-height: 1.5;
}

.bmt-partner-error {
	color: var(--bmt-coral-dark);
	font-weight: 700;
}

/* Главная */
.bmt-home {
	width: 100%;
}

.bmt-hero {
	margin: 28px 0 32px;
	padding: 28px 30px;
	background: var(--bmt-sand);
	border-radius: 8px;
	border-bottom: 4px solid var(--bmt-coral);
}

.bmt-hero__title {
	margin: 0 0 10px;
	font-size: 2rem;
}

.bmt-hero__lead {
	max-width: 720px;
	margin: 0 0 16px;
	font-size: 1.1rem;
}

.bmt-hero__rubrics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bmt-hero__rubrics a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	background: var(--bmt-blue);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.bmt-hero__rubrics a:hover,
.bmt-hero__rubrics a:focus {
	background: var(--bmt-coral);
	color: #fff;
}

.bmt-section {
	margin-bottom: 34px;
}

.bmt-section__title {
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--bmt-blue);
	font-size: 1.35rem;
}

.bmt-section__title a {
	color: var(--bmt-ink);
	text-decoration: none;
}

.bmt-latest__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}

.bmt-latest__grid .bmt-card:first-child {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 22px;
	align-items: center;
}

.bmt-card__img img {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	border-radius: 6px;
}

.bmt-card__body {
	padding-top: 10px;
}

.bmt-card__title {
	margin: 0 0 6px;
	font-size: 1.15rem;
	line-height: 1.35;
}

.bmt-card:first-child .bmt-card__title {
	font-size: 1.5rem;
}

.bmt-card__title a {
	color: var(--bmt-ink);
	text-decoration: none;
}

.bmt-card__title a:hover {
	color: var(--bmt-blue);
}

.bmt-card__date,
.bmt-list time {
	color: var(--bmt-muted);
	font-size: 14px;
}

.bmt-rubrics {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 32px;
}

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

.bmt-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--bmt-sand-line);
}

.bmt-list a {
	display: block;
	color: var(--bmt-ink);
	font-weight: 600;
	text-decoration: none;
}

.bmt-empty {
	margin: 0;
	padding: 14px 16px;
	background: var(--bmt-sand);
	border-radius: 6px;
	color: var(--bmt-muted);
}

/* Архив рубрики */
.ast-archive-description {
	background: var(--bmt-sand);
	border-bottom: 4px solid var(--bmt-coral);
	border-radius: 8px;
}

.ast-archive-description .ast-archive-title {
	font-family: var(--bmt-serif);
	color: var(--bmt-ink);
}

/* Подвал */
.site-footer,
.site-below-footer-wrap,
.site-primary-footer-wrap {
	background: var(--bmt-ink) !important;
	color: #E4E7EB;
	border-top: 0 !important;
}

.site-footer a,
.site-footer .menu-link,
.site-footer .ast-footer-copyright {
	color: #E4E7EB !important;
}

.site-footer a:hover,
.site-footer .menu-link:hover {
	color: var(--bmt-sand) !important;
}

/* Таблицы Travelpayouts (перенесено из старого custom CSS) */
.tp-table__wrapper.tp-table__wrapper.tp-table__wrapper.tp-table__wrapper.blue-table table tbody tr td .travelpayouts-table-button {
	background-color: var(--bmt-blue) !important;
}

/* Мобильная версия */
@media (max-width: 768px) {
	body { font-size: 17px; }
	h1, .entry-content h1 { font-size: 1.7rem; }
	h2, .entry-content h2 { font-size: 1.35rem; }
	.bmt-hero { margin: 16px 0 24px; padding: 20px 18px; }
	.bmt-hero__title { font-size: 1.55rem; }
	.bmt-latest__grid,
	.bmt-rubrics,
	.bmt-latest__grid .bmt-card:first-child {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.bmt-ukratko { padding: 14px 16px 10px; }
	.bmt-partner { padding: 28px 16px 14px; }
}

/* Блоки newsengine в тексте новостей (NEWS-42): «коротко» без мета, цитата, таблицы, хронология, документ, термин, «više o temi» */
.entry-content .nb-keypoints {
	margin: 0 0 1.6em;
	padding: 18px 22px 14px;
	background: var(--bmt-sand);
	border-left: 5px solid var(--bmt-blue);
	border-radius: 0 6px 6px 0;
}

.entry-content .nb-keypoints h3,
.entry-content .nb-timeline h3,
.entry-content .nb-related h3 {
	margin: 0 0 8px;
	font-family: var(--bmt-serif);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--bmt-blue);
}

.entry-content .nb-keypoints ul,
.entry-content .nb-timeline ul,
.entry-content .nb-related ul {
	margin: 0 0 0 1.1em;
	padding: 0;
}

.entry-content .nb-keypoints li,
.entry-content .nb-timeline li,
.entry-content .nb-related li {
	margin-bottom: 6px;
	line-height: 1.5;
}

.entry-content .nb-keypoints li::marker,
.entry-content .nb-timeline li::marker {
	color: var(--bmt-coral);
}

.entry-content .nb-timeline,
.entry-content .nb-related,
.entry-content .nb-document,
.entry-content .nb-term {
	margin: 1.6em 0;
	padding: 16px 20px 12px;
	border: 1px solid var(--bmt-sand-line);
	border-radius: 6px;
	background: #fff;
}

.entry-content .nb-timeline strong {
	color: var(--bmt-blue);
}

.entry-content .nb-document p,
.entry-content .nb-term p {
	margin: 0;
}

.entry-content blockquote.nb-quote {
	margin: 1.8em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--bmt-coral) !important; /* Astra задаёт blockquote свой бордюр с большей специфичностью */
	background: none;
	font-family: var(--bmt-serif);
	font-style: normal;
	font-size: 1.15rem;
	line-height: 1.55;
	color: var(--bmt-ink);
}

.entry-content blockquote.nb-quote p {
	margin: 0 0 8px;
}

.entry-content blockquote.nb-quote cite {
	display: block;
	font-family: var(--bmt-sans);
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
	color: var(--bmt-muted);
}

.entry-content figure.nb-table {
	margin: 1.6em 0;
	overflow-x: auto;
}

.entry-content figure.nb-table table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 0;
	font-size: .95rem;
}

.entry-content figure.nb-table th {
	padding: 9px 10px;
	background: var(--bmt-blue);
	border: 0;
	color: #fff;
	text-align: left;
	font-weight: 600;
}

.entry-content figure.nb-table td {
	padding: 9px 10px;
	border: 0;
	border-bottom: 1px solid var(--bmt-sand-line);
}

.entry-content figure.nb-table tbody tr:nth-child(even) td {
	background: #FBF8F2;
}

.entry-content .nb-before-after td:first-child {
	font-weight: 600;
}

.entry-content figure.nb-table figcaption,
.entry-content figure.nb-photo figcaption,
.entry-content figure.nb-quote-card figcaption,
.entry-content figure.nb-chart figcaption,
.entry-content figure.nb-big-number figcaption {
	margin-top: 6px;
	color: var(--bmt-muted);
	font-size: 14px;
	text-align: left;
}

@media (max-width: 768px) {
	.entry-content .nb-keypoints { padding: 14px 16px 10px; }
	.entry-content blockquote.nb-quote { font-size: 1.05rem; padding-left: 14px; }
	.entry-content figure.nb-table table { font-size: .88rem; }
	.entry-content figure.nb-table th,
	.entry-content figure.nb-table td { padding: 7px 8px; }
}
