:is(.gp-home-welcome, .gp-home-layout) {
	--gp-icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

:is(.home .entry-content, .editor-styles-wrapper) .gp-home-layout {
	width:100%;
	margin:32px 0 40px;
	padding:0;
}

:is(.home, .editor-styles-wrapper) .gp-home-news-row {
	background:#fff!important;
}

:is(.home, .editor-styles-wrapper) .gp-home-news-row>.kt-row-column-wrap {
	padding-top:0!important;
	padding-bottom:0!important;
}

.gp-home-news-layout {
	gap:32px!important;
	align-items:center;
}

.gp-home-news-layout>.wp-block-column:first-child {
	flex:0 0 120px;
}

.gp-home-publications {
	margin-top:28px;
}

.gp-home-layout .news-card.gp-home-photo-card {
	display:flex;
	flex-direction:row;
	align-items:center;
	gap:16px;
}

.gp-home-layout .news-card.gp-home-photo-card .wp-block-image {
	margin:0!important;
	flex:0 0 80px;
}

.gp-home-layout .news-card.gp-home-photo-card img {
	display:block;
	width:80px!important;
	height:80px;
	object-fit:contain;
	margin:0;
}

.gp-home-layout .gp-home-photo-card h3 {
	font-size:16px;
	font-weight:500;
	line-height:1.35;
	margin:0 0 8px;
}

.gp-home-layout .gp-home-photo-card p {
	font-size:14px;
	line-height:1.5;
	margin:0 0 8px;
}

.gp-home-photo-links {
	display:flex;
	flex-wrap:wrap;
	gap:8px 20px;
	margin:0;
	padding:0;
	list-style:none;
}

.gp-home-photo-links li,
.gp-home-nav-list li {
	margin:0;
	padding:0;
	list-style:none;
}

.gp-home-photo-links a {
	display:inline-flex;
	align-items:center;
	gap:6px;
	font-size:15px;
	text-underline-offset:3px;
}

.gp-home-photo-links a::before {
	content:'';
	width:16px;
	height:16px;
	flex:0 0 16px;
	background:currentColor;
	-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6l2-3h4l2 3h4a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
	mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6l2-3h4l2 3h4a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.gp-home-welcome {
	gap:48px!important;
	align-items:center;
	/* Kadence даёт .wp-block-columns margin-bottom: var(--global-md-spacing)
	 * внутри .single-content — внутри ряда он только добавляет пустое место. */
	margin-bottom:0!important;
}

:is(.home .entry-content, .editor-styles-wrapper) .gp-home-welcome h2 {
	text-align:left;
	text-transform:uppercase;
	border:0;
	padding:0;
	margin:0 0 16px;
}

.gp-home-welcome p {
	margin:0;
	max-width:45ch;
}

.gp-home-nav-list {
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:0 24px;
	margin:0;
	padding:0;
	list-style:none;
}

.gp-home-nav-list li a {
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:12px;
	min-height:64px;
	padding:12px 0;
	border-bottom:1px solid #ddd2c5;
	line-height:1.4;
	text-decoration:none;
	color:#41372e;
	transition:color .18s ease-out;
}

.gp-home-nav-list li a::after {
	content:'';
	width:20px;
	height:20px;
	flex:0 0 20px;
	color:#a64d09;
	background:currentColor;
	-webkit-mask:var(--gp-icon-arrow);
	mask:var(--gp-icon-arrow);
	transition:transform .18s ease-out;
}

.gp-home-nav-list li a:hover {
	color:#a64d09;
}

.gp-home-nav-list li a:hover::after {
	transform:translateX(3px);
}

.gp-home-welcome a:focus-visible {
	outline:2px solid #a64d09;
	outline-offset:4px;
}

.gp-home-welcome .gp-home-member {
	display:flex;
	align-items:center;
	gap:16px;
	margin-top:24px;
	padding:12px 16px;
	background:#f3e7d8;
	border-radius:12px;
}

.gp-home-member-copy {
	display:flex;
	flex:1;
	align-items:center;
	justify-content:space-between;
	gap:16px;
	min-width:0;
}

:is(.home .entry-content, .editor-styles-wrapper) .gp-home-member h3 {
	font-size:12px;
	font-weight:700;
	line-height:1.4;
	letter-spacing:.06em;
	text-transform:uppercase;
	margin:0;
}

.gp-home-member-copy p {
	margin:0;
}

.gp-home-member-copy p a {
	display:inline-block;
	padding:9px 14px;
	border-radius:8px;
	background:#fff;
	color:#934608;
	font-size:15px;
	text-decoration:none;
	white-space:nowrap;
}

.gp-home-member-copy p a:hover {
	background:#fcf8f3;
	text-decoration:underline;
}

.gp-home-welcome .gp-home-illustration {
	flex:0 0 80px;
	margin:0!important;
}

.gp-home-welcome .gp-home-illustration img {
	display:block;
	width:80px;
	height:80px;
	object-fit:contain;
}

/*
 * Kadence-тема без theme.json, поэтому ядро оборачивает содержимое group
 * в .wp-block-group__inner-container. В редакторе этого контейнера нет —
 * гасим его, чтобы вёрстка совпадала.
 */
:is(.gp-home-welcome, .gp-home-layout) .wp-block-group__inner-container {
	display:contents;
}

.gp-home-layout a:focus-visible {
	outline:2px solid #a64d09;
	outline-offset:4px;
}

.gp-home-heading {
	display:flex;
	align-items:center;
	justify-content:center;
	margin:0;
}

.gp-home-heading .wp-block-image {
	margin:0!important;
}

.gp-home-heading img {
	width:80px!important;
	height:80px;
	object-fit:contain;
	margin:0!important;
}

/* На широком экране иллюстрация новостей крупнее. */
@media(min-width:1025px) {
	.gp-home-heading img {
		width:120px!important;
		height:120px;
	}
}

.gp-home-layout .news-card-grid {
	gap:16px;
}

.gp-home-layout .news-card {
	display:flex;
	flex-direction:column;
	min-width:0;
	min-height:0;
	margin:0;
	padding:16px;
	background:#f8f5f0;
	border-radius:12px;
	box-shadow:none;
}

.gp-home-layout .news-card ul {
	margin:0;
	padding:0;
}

.gp-home-layout .news-card li {
	list-style:none;
}

.gp-home-layout .news-card img {
	max-height:112px;
	object-fit:cover;
	margin-bottom:12px;
}

.gp-home-layout .news-card .excerpt {
	display:block;
	font-size:14px;
	line-height:1.5;
	margin-top:8px;
}

.gp-home-layout .news-card .title {
	font-size:16px;
	line-height:1.35;
}

:is(.home .entry-content, .editor-styles-wrapper) .gp-home-publications h2 {
	font-size:20px;
	letter-spacing:.02em;
	margin:0 0 16px;
	padding:0;
	border:0;
	text-transform:uppercase;
}

.gp-home-publications ul {
	display:grid;
	grid-template-columns:repeat(2,minmax(0,1fr));
	gap:0 32px;
	list-style:none;
	margin:0;
	padding:0;
}

.gp-home-publications li {
	display:flex;
	min-width:0;
	padding:0;
	border-bottom:1px solid #e6ded6;
	line-height:1.4;
}

.gp-home-publications li a {
	display:grid;
	grid-template-columns:minmax(0,1fr) 20px;
	align-items:center;
	gap:20px;
	flex:1;
	padding:16px 12px;
	font-size:16.5px;
	font-weight:400;
	line-height:1.4;
	text-wrap:pretty;
	text-decoration:none;
	transition:background-color .18s ease-out;
}

.gp-home-publications li a:hover {
	background:#faf7f2;
}

.gp-home-publications li a::after {
	content:'';
	width:20px;
	height:20px;
	background:currentColor;
	-webkit-mask:var(--gp-icon-arrow);
	mask:var(--gp-icon-arrow);
	transition:transform .18s ease-out;
}

.gp-home-publications li a:hover::after {
	transform:translateX(3px);
}

@media(max-width:1024px) {
	.gp-home-welcome {
		gap:24px!important;
	}
	.gp-home-layout .news-card {
		padding:14px 16px;
	}
	.gp-home-member-copy {
		flex-direction:column;
		align-items:flex-start;
		gap:8px;
	}
}

@media(max-width:767px) {
	.gp-home-nav-list {
		grid-template-columns:minmax(0,1fr);
	}
	.gp-home-layout .news-card-grid {
		grid-template-columns:minmax(0,1fr);
	}
	.gp-home-publications ul {
		grid-template-columns:1fr;
	}
	.gp-home-publications li a {
		padding:14px 0;
		gap:16px;
		font-size:16px;
	}
}

@media(prefers-reduced-motion:reduce) {
	.gp-home-nav-list li a,
	.gp-home-nav-list li a::after,
	.gp-home-publications li a,
	.gp-home-publications li a::after {
		transition:none;
	}
	.gp-home-nav-list li a:hover::after,
	.gp-home-publications li a:hover::after {
		transform:none;
	}
}
