/*
 * Стилі шаблонів WordPress (блог, стаття, Aktualności) поверх styles.css + wiedza.css верстки.
 * Використовуються лише токени верстки (:root у styles.css).
 */

/* ---------- Архіви ---------- */
.knowledge-hero-grid.is-compact { grid-template-columns: minmax(0, 46rem); }
.knowledge-hero-copy h1.is-term { font-size: clamp(2.8rem, 5.4vw, 5.2rem); line-height: 1.05; }
.knowledge-categories a.is-current { background: var(--forest); color: #fff; }
.knowledge-categories a.is-current strong { background: rgba(255, 255, 255, .16); color: #fff; }
.knowledge-pagination .knowledge-dots { width: 2.75rem; text-align: center; color: var(--muted); }
.knowledge-pagination a.is-current { pointer-events: none; }
.tiat-empty { padding: 3rem 0; color: var(--muted); text-align: center; }

/* ---------- Стаття / новина ---------- */
.article-hero { padding-bottom: 4.5rem; }
.article-hero-inner { max-width: 60rem; }
.article-hero h1 { max-width: 56rem; margin: 1.1rem 0 0; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: 1.08; }
.article-hero .knowledge-meta a:hover { color: var(--forest); }

.article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 19.5rem;
	gap: 4.5rem;
	align-items: start;
	padding: 4.5rem 0 5.5rem;
}
.article-cover { margin: 0 0 2.6rem; overflow: hidden; border-radius: 1.5rem; background: var(--mint-2); box-shadow: 0 30px 65px rgba(9, 48, 36, .12); }
.article-cover img { width: 100%; height: auto; }

.entry-content { max-width: 46rem; color: #34493f; font-size: 1.06rem; line-height: 1.8; overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol, .entry-content blockquote, .entry-content figure, .entry-content table { margin: 0 0 1.35em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.025em; }
.entry-content h2 { margin: 2.1em 0 .7em; font-size: clamp(1.7rem, 2.8vw, 2.35rem); line-height: 1.15; }
.entry-content h3 { margin: 1.8em 0 .6em; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.25; }
.entry-content h4 { margin: 1.6em 0 .5em; font-size: 1.2rem; }
.entry-content h2 strong, .entry-content h3 strong, .entry-content h4 strong { font-weight: inherit; }
.entry-content strong { color: var(--ink); font-weight: 700; }
.entry-content a { color: var(--pine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.entry-content a:hover { color: var(--forest); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--pine); }
.entry-content blockquote { margin-left: 0; padding: 1.4rem 1.6rem; border-left: 3px solid var(--gold); border-radius: 0 1rem 1rem 0; background: var(--cream); font-family: Georgia, serif; font-size: 1.15rem; }
.entry-content img { height: auto; border-radius: 1rem; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .3rem 1.8rem 1rem 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.8rem; max-width: 50%; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text, .entry-content figcaption { margin-top: .5rem; color: var(--muted); font-size: .85rem; text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: .7rem .9rem; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--mint-2); }
.entry-content iframe, .entry-content video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 1rem; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Блок «Uzyskaj Pomoc Natychmiast!» (колишній vc_cta зі старого сайту) */
.entry-content .post-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin: 2.4em 0;
	padding: 1.8rem 2rem;
	border-radius: 1.25rem;
	background: var(--forest);
	color: #fff;
}
.entry-content .post-cta p { margin: 0; color: inherit; }
.entry-content .post-cta-title { font: 400 clamp(1.35rem, 2.2vw, 1.75rem)/1.25 Georgia, "Times New Roman", serif; }
.entry-content .post-cta-title span { display: block; color: var(--gold); white-space: nowrap; }
.entry-content .post-cta-sub { margin-top: .45rem !important; color: #a9c9ba !important; font-size: .76rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.entry-content .post-cta-button {
	flex: none;
	padding: .95rem 1.4rem;
	border-radius: 999px;
	background: #fff;
	color: var(--forest);
	font-size: .8rem;
	font-weight: 750;
	letter-spacing: .08em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background .2s, color .2s;
}
.entry-content .post-cta-button:hover { background: var(--gold); color: var(--forest); }

.article-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.5rem 0 0; }
.article-tags a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; }
.article-tags a:hover { border-color: var(--forest); color: var(--forest); }
.article-back { margin-top: 2.8rem; }

/* Бокова колонка */
.article-aside { position: sticky; top: 7rem; display: grid; gap: 1.25rem; }
.article-help { padding: 1.7rem; border-radius: 1.25rem; background: var(--forest); color: #fff; }
.article-help .overline { margin-bottom: 1rem; }
.article-help-title { margin: 0 0 1.4rem; font: 400 1.4rem/1.25 Georgia, "Times New Roman", serif; }
.article-help-phone { display: block; padding: 1rem 1.1rem; border-radius: .9rem; background: rgba(255, 255, 255, .08); transition: background .2s; }
.article-help-phone:hover { background: rgba(255, 255, 255, .14); }
.article-help-phone small { display: block; color: #a9c9ba; font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.article-help-phone strong { display: block; margin-top: .2rem; font-size: 1.25rem; }
.article-help-link { display: inline-flex; gap: 1rem; margin-top: 1.1rem; padding-bottom: .2rem; border-bottom: 1px solid currentColor; font-size: .8rem; font-weight: 750; }
.article-cats { overflow: hidden; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper); }
.article-cats-title { margin: 0; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); color: var(--pine); font-size: .76rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.article-cats a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.2rem; border-bottom: 1px solid var(--line); font-size: .88rem; font-weight: 650; transition: background .2s, color .2s; }
.article-cats a:last-child { border-bottom: 0; }
.article-cats a:hover, .article-cats a.is-current { background: var(--forest); color: #fff; }
.article-cats strong { min-width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: .74rem; }
.article-cats a:hover strong, .article-cats a.is-current strong { background: rgba(255, 255, 255, .16); color: #fff; }

.article-related { padding-top: 5.5rem; background: var(--cream); }

/* Звичайна сторінка з редактора */
.tiat-page .entry-content { max-width: none; }

@media (max-width: 68rem) {
	.article-layout { grid-template-columns: 1fr; gap: 3rem; }
	.article-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.entry-content { max-width: none; }
}

@media (max-width: 48rem) {
	.article-hero { padding-bottom: 3rem; }
	.article-layout { padding: 2.5rem 0 4rem; }
	.article-aside { grid-template-columns: 1fr; }
	.article-cover { margin-bottom: 1.8rem; border-radius: 1rem; }
	.entry-content { font-size: 1rem; }
	.entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin: 0 0 1.35em; }
	.entry-content .post-cta { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
	.article-related { padding-top: 4rem; }
}

/* Aktualności: Mass-Media (filmy z popupem). */
.media-videos { padding: 6.5rem 0 7rem; background: var(--mint-2); }
.media-videos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.media-video-card { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--forest); box-shadow: 0 18px 40px rgba(9, 48, 36, .12); cursor: pointer; }
.media-video-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease, filter .35s ease; }
.media-video-card:hover img, .media-video-card:focus-visible img { transform: scale(1.03); filter: brightness(.88); }
.media-video-card:focus-visible { outline: 3px solid var(--pine); outline-offset: .25rem; }
.media-video-card:hover .about-video-play, .media-video-card:focus-visible .about-video-play { background: var(--pine); transform: translate(-50%, -50%) scale(1.08); }
.media-video-card .about-video-play { width: 4.25rem; height: 4.25rem; }
.media-video-modal .home-video-frame[hidden] { display: none; }
.media-video-modal video { display: block; width: 100%; height: 100%; background: #000; }
@media (max-width: 68rem) { .media-videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .media-videos { padding: 4.5rem 0 5rem; } .media-videos-grid { grid-template-columns: 1fr; gap: 1rem; } .media-video-card .about-video-play { width: 3.6rem; height: 3.6rem; } }
