/*
Theme Name: Europa Capital
Theme URI: https://europacapital.ru/
Author: Редакция europacapital.ru
Description: Тема сайта europacapital.ru (Чехия: визы и иммиграция, недвижимость, бизнес). Повторяет оформление старого сайта: белый фон, шапка с логотипом и баннером, голубое горизонтальное меню, три колонки с голубыми плашками, синий и красный акценты, заголовки Times New Roman. Отдаёт главную страницу, статьи, ленту, рубрики, поиск и 404; остальные адреса отдаёт архив сайта. Адаптивная: на телефоне колонки идут друг под другом, меню сворачивается.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 7.1
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: europacapital
*/

/* ==========================================================================
   Основа
   ========================================================================== */

:root {
	--blue: #00439a;
	--link: #1d6cc3;
	--red: #b71116;
	--line: #cbe4ff;
	--plate: #f2f8ff;
	--text: #252525;
	--serif: "Times New Roman", Times, serif;
	--sans: Tahoma, Geneva, Arial, sans-serif;
}

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

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

body {
	margin: 0;
	background: #fff;
	color: var(--text);
	font-family: var(--sans);
	font-size: 13px;
	line-height: 1.45;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
}

a {
	color: var(--link);
}

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

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 6px;
	left: 6px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 8px 12px;
	clip: auto;
	background: #fff;
	color: var(--blue);
}

/* ==========================================================================
   Шапка
   ========================================================================== */

#page {
	background: url("assets/img/hdr-mn-bgr.jpg") repeat-x;
}

#page-wrap {
	width: 960px;
	max-width: 100%;
	margin: 0 auto;
}

#header {
	position: relative;
	height: 348px;
}

#header-inf {
	float: left;
	width: 220px;
	height: 265px;
}

#header-logo {
	width: 200px;
	padding-top: 35px;
	margin-left: 2px;
}

#header-logo a,
#header-logo img {
	display: block;
}

#header-info {
	height: 157px;
	margin: 6px 0 0 3px;
	padding: 12px 12px 0;
	border: 1px solid #c3dcf5;
	background: linear-gradient(180deg, #f7fbff 0%, #dcecfd 100%);
	font-family: var(--serif);
	color: var(--blue);
}

#header-info p {
	margin: 0;
}

.blueheader {
	font-size: 18px;
	font-weight: bold;
	padding-bottom: 8px;
}

.header-tagline {
	font-size: 16px;
	font-size: 15px;
	line-height: 1.35;
	padding-top: 8px;
	border-top: 1px solid #b8d6f5;
}

#header-image {
	float: left;
	width: 740px;
	height: 265px;
	position: relative;
}

.header-icons {
	height: 25px;
	text-align: right;
	padding: 2px 3px 0 0;
}

.header-icons .ico {
	display: inline-block;
	width: 26px;
	height: 23px;
	margin-left: 2px;
	background: url("assets/img/header_ico.png") no-repeat;
}

.ico-home {
	background-position: -144px 0 !important;
}

.ico-search {
	background-position: -170px 0 !important;
}

.ico-map {
	background-position: -196px 0 !important;
}

#header-image-section {
	width: 740px;
	height: 237px;
	overflow: hidden;
}

#header-image-section img {
	display: block;
	max-width: none;
	width: 760px;
	height: 242px;
}

#header-menu {
	clear: both;
	width: 960px;
	max-width: 100%;
	height: 83px;
	margin-left: 4px;
	background: url("assets/img/tp-mnu-bgr.png") repeat-x;
}

.menu-toggle {
	display: none;
}

#header-menu ul {
	margin: 0;
	padding: 14px 0 0;
	width: 955px;
	height: 50px;
	list-style: none;
	background: url("assets/img/tp-mnu-lft.png") repeat-x 0 14px;
}

#header-menu li {
	float: left;
	height: 50px;
	margin: 0;
	font-family: var(--serif);
	font-size: 13px;
	line-height: 50px;
	text-align: center;
	white-space: nowrap;
}

#header-menu li a {
	display: block;
	float: left;
	height: 50px;
	padding-right: 9px;
	background: url("assets/img/tp-mnu-rgt.png") no-repeat top right;
	text-decoration: none;
}

#header-menu li a span {
	display: block;
	padding: 0 8px;
	text-transform: uppercase;
}

#header-menu li a:hover,
#header-menu li a:focus,
#header-menu li.current-menu-item > a,
#header-menu li.current_page_item > a {
	background: url("assets/img/tp-mnu-rgh-h.png") no-repeat top right;
	color: #fbfbfb;
}

#header-menu li a:hover span,
#header-menu li a:focus span,
#header-menu li.current-menu-item > a span,
#header-menu li.current_page_item > a span {
	background: url("assets/img/tp-mnu-lft-h.png") repeat-x;
}

/* Если пункты задаются в админке без <span>, подсвечивается сама ссылка. */
#header-menu li a:not(:has(span)) {
	padding: 0 18px 0 9px;
}

/* ==========================================================================
   Три колонки
   ========================================================================== */

#main {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 200px;
	align-items: start;
	margin-top: -12px;
	background: #fff;
}

#main-left {
	padding-top: 5px;
}

#main-center {
	padding: 0 14px 20px 0;
	min-width: 0;
}

#main-right {
	padding-top: 0;
	min-width: 0;
}

.side-banner {
	display: block;
	margin: 0 0 12px 0;
	max-width: 172px;
}

.side-banner img {
	display: block;
}

.side-banner--catalog {
	margin-top: 14px;
	max-width: 197px;
}

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

.plates li {
	margin: 0;
	padding: 0;
}

.plates--first {
	margin-top: 4px;
}

.plates-gap {
	height: 18px;
}

a.mainlevel,
a.mainlevel:link,
a.mainlevel:visited {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 5px 8px;
	border-top: 1px solid #bddbff;
	border-bottom: 1px solid #cee4ff;
	background: url("assets/img/lft-mnu.png") repeat-y;
	background-size: 100% 1px;
	color: var(--link);
	font-family: var(--serif);
	font-size: 11px;
	line-height: 1.25;
	text-decoration: none;
	text-transform: uppercase;
}

a.mainlevel:hover,
a.mainlevel:focus {
	background: #1d6ec5 url("assets/img/lft-mnu-a.png") no-repeat;
	color: #fbfbfb;
}

#main-right .plates {
	margin-left: 0;
}

/* ==========================================================================
   Заголовки и текст в центральной колонке
   ========================================================================== */

.breadcrumbs {
	margin: 8px 0 6px;
	font-size: 12px;
	color: #6b7f99;
}

.breadcrumbs a {
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.crumb-sep::before {
	content: "\203A";
	display: inline-block;
	margin: 0 7px;
	color: #9bb4d4;
}

.page-head {
	margin: 0 0 14px;
}

#main-center h1,
.page-title {
	margin: 12px 0 10px;
	padding: 4px 0 6px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	color: var(--red);
	font-family: var(--serif);
	font-size: 24px;
	font-weight: normal;
	line-height: 1.2;
	text-align: left;
	overflow-wrap: anywhere;
}

.breadcrumbs + .page-head .page-title {
	margin-top: 4px;
}

.page-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	color: #5b6c82;
	font-size: 12px;
}

.entry-date,
.card-meta .entry-date {
	font-weight: bold;
}

.page-text {
	margin-top: 8px;
}

.cat-badge {
	display: inline-block;
	padding: 1px 8px;
	background: var(--line);
	color: var(--blue);
	font-size: 11px;
	text-decoration: none;
}

a.cat-badge:hover {
	background: var(--blue);
	color: #fff;
}

.home-intro p {
	margin: 0 0 10px;
	font-size: 13px;
}

/* Блоки главной */

.home-block {
	margin-top: 26px;
}

.home-title,
.entry-content h2,
.section-title {
	margin: 0 0 12px;
	padding: 0 0 4px;
	border-bottom: 1px solid var(--line);
	color: var(--red);
	font-family: var(--serif);
	font-size: 21px;
	font-weight: normal;
	line-height: 1.2;
}

.home-more {
	margin: 12px 0 0;
	font-family: var(--serif);
	font-size: 15px;
	text-align: right;
}

.home-group {
	margin-bottom: 14px;
}

.home-group-title {
	margin: 0 0 5px;
	font-family: var(--serif);
	font-size: 17px;
	font-weight: normal;
	color: var(--blue);
}

.home-group-title a {
	color: var(--blue);
}

.home-list,
.entry-content ul {
	margin: 0 0 6px;
	padding: 0 0 0 4px;
	list-style: none;
}

.home-list li,
.entry-content ul > li {
	margin: 0 0 4px;
	padding-left: 15px;
	background: url("assets/img/mn-cnt-ul.png") no-repeat 0 6px;
}

.home-sections {
	column-gap: 0;
}

/* ==========================================================================
   Карточки
   ========================================================================== */

.cards {
	display: grid;
	gap: 16px;
}

.cards--grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards--list {
	grid-template-columns: minmax(0, 1fr);
	gap: 0;
}

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--plate);
	border: 1px solid var(--line);
}

.card-thumb {
	position: relative;
	background: #dbe9f9;
}

.card-thumb-link {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-thumb .cat-badge {
	position: absolute;
	left: 8px;
	bottom: 8px;
	background: rgba(0, 67, 154, 0.88);
	color: #fff;
}

.card-body {
	padding: 9px 11px 11px;
}

.card-meta {
	margin-bottom: 3px;
	color: #5b6c82;
	font-size: 11px;
}

.card-meta-cat {
	display: none;
}

.card-title {
	margin: 0 0 5px;
	font-family: var(--serif);
	font-size: 17px;
	font-weight: normal;
	line-height: 1.2;
}

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

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

.card-excerpt p {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
}

.cards--list .card {
	flex-direction: row;
	margin-bottom: 14px;
}

.cards--list .card-thumb {
	flex: 0 0 190px;
	min-height: 127px;
}

.cards--list .card-thumb-link {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.cards--list .card-meta-cat {
	display: inline;
}

.cards--list .card-thumb .cat-badge {
	display: none;
}

.cards--list .card-body {
	flex: 1;
	min-width: 0;
}

.cards--list .card-title {
	font-size: 19px;
}

/* ==========================================================================
   Статья
   ========================================================================== */

.entry-cover {
	margin: 0 0 14px;
}

.entry-cover img {
	display: block;
	width: 100%;
	height: auto;
}

.entry-content {
	font-size: 13px;
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 12px;
}

.entry-content h2 {
	margin-top: 22px;
}

.entry-content h3,
.entry-content h4 {
	margin: 18px 0 8px;
	color: #074997;
	font-family: var(--serif);
	font-weight: normal;
	font-size: 18px;
	line-height: 1.25;
}

.entry-content h4 {
	font-size: 16px;
}

.entry-content strong,
.entry-content b {
	font-weight: bold;
}

.entry-content ol {
	margin: 0 0 12px;
	padding-left: 26px;
}

.entry-content ol > li {
	margin-bottom: 4px;
}

.entry-content li > ul,
.entry-content li > ol {
	margin-top: 4px;
	margin-bottom: 0;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin: 0 0 14px;
	padding: 8px 14px;
	border: 0;
	border-left: 3px solid var(--blue);
	background: var(--plate);
	font-style: italic;
}

.entry-content blockquote p {
	margin: 0 0 6px;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite {
	font-size: 12px;
	font-style: normal;
	color: #5b6c82;
}

.entry-content figure {
	margin: 0 0 14px;
}

.entry-content .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	margin-top: 5px;
	color: #5b6c82;
	font-size: 12px;
	text-align: center;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.entry-content .wp-block-table {
	overflow-x: auto;
}

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

.entry-content th,
.entry-content td {
	padding: 6px 8px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.entry-content thead th {
	background: #d8e6f5;
	color: var(--blue);
}

.entry-content tbody tr:nth-child(even) td {
	background: var(--plate);
}

.entry-content .wp-block-embed__wrapper {
	position: relative;
}

.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper,
.entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper {
	position: relative;
	height: 0;
	padding-bottom: 56.25%;
}

.entry-content .wp-block-embed.wp-embed-aspect-4-3 .wp-block-embed__wrapper {
	padding-bottom: 75%;
}

.entry-content .wp-block-embed.is-type-video iframe,
.entry-content .wp-block-embed.wp-has-aspect-ratio iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.entry-content hr,
.entry-content .wp-block-separator {
	height: 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.entry-content pre,
.entry-content code {
	font-size: 12px;
	background: var(--plate);
}

.entry-content pre {
	padding: 10px;
	overflow-x: auto;
}

.page-links {
	margin-top: 10px;
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	margin-top: 18px;
	padding-top: 10px;
	border-top: 1px solid var(--line);
	font-size: 12px;
}

.button {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid var(--link);
	background: var(--link);
	color: #fff;
	font-family: var(--serif);
	font-size: 14px;
	text-decoration: none;
}

.button:hover,
.button:focus {
	background: var(--red);
	border-color: var(--red);
	color: #fff;
}

.button--ghost {
	background: transparent;
	color: var(--link);
}

.related {
	margin-top: 26px;
}

/* ==========================================================================
   Поиск, пагинация, 404
   ========================================================================== */

.search-form {
	display: flex;
	max-width: 420px;
	margin: 8px 0 12px;
}

.search-field {
	flex: 1;
	min-width: 0;
	padding: 6px 8px;
	border: 1px solid #9ec5ef;
	border-right: 0;
	border-radius: 0;
	background: #fff;
	color: var(--text);
	font: inherit;
}

.search-submit {
	padding: 0 12px;
	border: 1px solid var(--link);
	border-radius: 0;
	background: var(--link);
	color: #fff;
	cursor: pointer;
}

.search-submit:hover {
	background: var(--red);
	border-color: var(--red);
}

.posts-pagination,
.navigation.pagination {
	margin-top: 18px;
}

.posts-pagination .nav-links,
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.page-numbers {
	display: inline-block;
	min-width: 32px;
	padding: 5px 9px;
	border: 1px solid var(--line);
	background: var(--plate);
	color: var(--link);
	font-family: var(--serif);
	font-size: 14px;
	text-align: center;
	text-decoration: none;
}

a.page-numbers:hover {
	background: #1d6ec5;
	border-color: #1d6ec5;
	color: #fbfbfb;
}

.page-numbers.current {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

.not-found-lead {
	margin: 0 0 6px;
}

.not-found-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
}

.no-results p {
	margin: 0 0 8px;
}

/* ==========================================================================
   Подвал
   ========================================================================== */

#footer {
	clear: both;
	position: relative;
	margin-top: 10px;
	background: #d8e6f5;
}

#content-footer {
	padding: 10px 12px 2px;
	text-align: center;
	font-family: var(--serif);
	font-size: 14px;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li {
	margin: 0;
}

.footer-menu li + li::before {
	content: "|";
	margin: 0 9px;
	color: var(--blue);
}

.footer-menu a {
	color: var(--blue);
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--red);
	text-decoration: underline;
}

#footer-inside {
	width: 960px;
	max-width: 100%;
	height: 75px;
	margin: 0 auto;
	background: url("assets/img/ftr-bgr.jpg") no-repeat top center;
}

#footer-inside-content {
	padding: 30px 12px 0;
	text-align: center;
	color: var(--blue);
	font-size: 13px;
}

/* ==========================================================================
   Узкие экраны
   ========================================================================== */

@media (max-width: 960px) {
	#header,
	#header-image,
	#header-image-section {
		height: auto;
	}

	#main {
		grid-template-columns: 200px minmax(0, 1fr) 190px;
	}

	#main-left {
		padding-left: 4px;
	}

	#header-image {
		width: calc(100% - 220px);
	}

	#header-image-section {
		width: 100%;
	}

	#header-image-section img {
		width: 100%;
		height: auto;
	}
}

@media (max-width: 800px) {
	#page {
		background: none;
		border-top: 2px solid #2a8be0;
	}

	#header {
		display: grid;
		grid-template-columns: 1fr;
	}

	#header-inf {
		float: none;
		width: auto;
		height: auto;
		padding: 8px 12px 0;
	}

	#header-logo {
		height: auto;
		padding-top: 4px;
		margin: 0;
	}

	#header-info {
		display: none;
	}

	#header-image {
		float: none;
		position: static;
		width: 100%;
		height: auto;
		margin: 0;
	}

	.header-icons {
		position: absolute;
		top: 12px;
		right: 12px;
		z-index: 2;
		height: auto;
		padding: 0;
	}

	#header-image-section {
		width: 100%;
		margin-top: 6px;
	}

	#header-menu {
		width: auto;
		height: auto;
		margin: 0;
		background: #dcecfd;
		border-top: 1px solid #b8d6f5;
		border-bottom: 1px solid #b8d6f5;
	}

	.menu-toggle {
		display: block;
		width: 100%;
		padding: 11px 14px;
		border: 0;
		background: #dcecfd;
		color: var(--blue);
		font-family: var(--serif);
		font-size: 16px;
		text-align: left;
		text-transform: uppercase;
		cursor: pointer;
	}

	.menu-toggle::after {
		content: "\2630";
		float: right;
	}

	.top-menu {
		display: none;
	}

	.top-menu.is-open {
		display: block;
	}

	#header-menu ul {
		width: auto;
		height: auto;
		padding: 0;
		background: none;
	}

	#header-menu li {
		float: none;
		height: auto;
		text-align: left;
		line-height: 1.3;
		white-space: normal;
		border-top: 1px solid #b8d6f5;
	}

	#header-menu li a {
		float: none;
		height: auto;
		padding: 0;
		background: none;
	}

	#header-menu li a span,
	#header-menu li a:not(:has(span)) {
		padding: 11px 14px;
	}

	#header-menu li a:hover,
	#header-menu li a:focus,
	#header-menu li.current-menu-item > a,
	#header-menu li.current_page_item > a {
		background: var(--blue);
		color: #fff;
	}

	#header-menu li a:hover span,
	#header-menu li a:focus span,
	#header-menu li.current-menu-item > a span,
	#header-menu li.current_page_item > a span {
		background: none;
	}

	#main {
		display: flex;
		flex-direction: column;
		margin-top: 0;
	}

	#main-center {
		order: 1;
		padding: 0 12px 16px;
	}

	#main-left {
		order: 2;
		padding: 0 12px;
	}

	#main-right {
		order: 3;
		padding: 12px 12px 0;
	}

	.side-banner {
		margin-left: 0;
	}

	.side-banner--catalog {
		margin-top: 12px;
	}

	#main-right .side-banner {
		display: inline-block;
		vertical-align: top;
		margin-right: 10px;
	}

	.plates-gap {
		height: 12px;
	}

	#footer-inside {
		background-size: auto 100%;
	}
}

@media (max-width: 600px) {
	.cards--grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cards--list .card {
		flex-direction: column;
	}

	.cards--list .card-thumb {
		flex: none;
		min-height: 0;
	}

	.cards--list .card-thumb-link {
		position: static;
		aspect-ratio: 3 / 2;
	}

	.cards--list .card-thumb .cat-badge {
		display: inline-block;
	}

	#main-center h1,
	.page-title {
		font-size: 22px;
	}

	.home-title,
	.entry-content h2,
	.section-title {
		font-size: 20px;
	}
}

.entry-content .wp-block-table thead {
	border-bottom: 0;
}
