/* СХЕМА — кастомные стили поверх Gentium */

/* ---- Inter as site-wide typeface ---- */
:root {
	--shema-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Carousels (Works/Blog) can paint slides outside the viewport — don't grow page width */
body.home,
body.home .site {
	overflow-x: clip;
}

body.home .elementor-widget-pr-postcarousel,
body.home .swiper-container-wrap {
	max-width: 100%;
	overflow: hidden;
}

/*
 * Homepage «Контексты» loop: category label repeats the section title.
 * Selector must beat Pixerex `.post.type-post > .outer > .inner .category`.
 */
body.home .pr-blog-carousel-wrap.style-one .post.type-post > .outer > .inner .category {
	display: none !important;
}

/* Hide publication dates everywhere (keep copyright year in footer) */
.meta-date,
.pr-blog-carousel-wrap .meta,
.pr-blog-carousel-wrap .bottom,
.post-enty-meta .date,
.entry-meta .date,
.posted-on,
.entry-date,
time.entry-date,
.meta-date,
.chess-post .meta-date,
.post-grid .date,
.blog-posts .date,
.shema-hide-dates .date {
	display: none !important;
}

html,
body,
button,
input,
select,
textarea,
.uk-h1,
.uk-h2,
.uk-h3,
.uk-h4,
.uk-h5,
.uk-h6,
.uk-heading-small,
.uk-heading-medium,
.uk-heading-large,
.uk-heading-xlarge,
.uk-heading-2xlarge,
h1,
h2,
h3,
h4,
h5,
h6,
.elementor-widget,
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-text-editor,
.elementor-widget-button .elementor-button,
.elementor-nav-menu,
.elementor-icon-list-text,
.pixe-post-item,
.blog-entry-title,
.entry-title,
.section-title,
.page-title,
.menu-item,
.pr-page-title,
#mobile-header,
#desktop-header,
.site-footer {
	font-family: var(--shema-font) !important;
}

/* Keep icon fonts intact (do not force Inter on icon glyphs) */
.fa,
.fas,
.far,
.fal,
.fab {
	font-family: "FontAwesome" !important;
}

.eicon,
[class^="eicon-"],
[class*=" eicon-"] {
	font-family: eicons !important;
}

/* ---- Portfolio single (Woody-like, Gutenberg content) ---- */
.shema-portfolio-single {
	padding: 60px 0 100px;
}

.shema-portfolio-header {
	margin: 0 0 2rem;
}

.shema-portfolio-title {
	margin: 0;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #101010;
}

/* Case/work cards: do not Title-Case every word */
.pr-blog-carousel-wrap .title,
.pr-blog-carousel-wrap .title a,
.item.work-box .title,
.item.work-box .title a,
.pr-portfolio-caption .pr-portfolio-img-name,
.pr-portfolio-caption .pr-portfolio-img-name a {
	text-transform: none;
}

.shema-portfolio-lead {
	margin: 0 0 2rem;
	padding: 0.15em 0 0.15em 1.15em;
	border: 0;
	border-left: 3px solid #e9204f;
	font-size: 1.125rem;
	font-weight: 400;
	font-style: italic;
	line-height: 1.55;
	letter-spacing: 0;
	color: #3a3a3a;
}

.shema-portfolio-lead p {
	margin: 0;
}

.shema-portfolio-details-title,
.shema-related-title {
	margin: 0 0 1rem;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.shema-portfolio-details-title {
	text-transform: uppercase;
	font-size: 1.35rem;
	letter-spacing: 0.04em;
}

.shema-portfolio-content {
	max-width: none;
	font-size: 17px;
	line-height: 1.7;
	color: #3a3a3a; /* same as .shema-page-doc; body inherits #747474 from Gentium */
}

.shema-portfolio-content > *:first-child {
	margin-top: 0;
}

.shema-portfolio-content h2 {
	margin-top: 2em;
	margin-bottom: 0.75em;
	font-size: 1.5rem;
	font-weight: 700;
	color: #101010;
}

.shema-portfolio-content p {
	margin: 0 0 1.25em;
	color: #3a3a3a;
}

.shema-portfolio-featured {
	margin: 2.5rem 0 0;
}

.shema-portfolio-featured img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.shema-portfolio-divider {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	margin: 0 0 1.75rem;
}

.shema-portfolio-meta-item {
	margin: 0 0 1.5rem;
}

.shema-portfolio-meta-label {
	margin: 0 0 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.shema-portfolio-meta-value {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.5;
}

.shema-portfolio-meta-value a {
	color: inherit;
	text-decoration: none;
}

.shema-portfolio-meta-value a:hover {
	color: #e9204f;
}

.shema-portfolio-share {
	margin: 1.75rem 0;
}

.shema-portfolio-button {
	display: inline-block;
	padding: 12px 28px;
	border: 1px solid currentColor;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.shema-portfolio-button:hover {
	background: #e9204f;
	border-color: #e9204f;
	color: #fff;
}

.shema-related-projects {
	margin-top: 80px;
}

.shema-related-divider {
	margin-bottom: 2rem;
}

.shema-related-card-title {
	margin: 1rem 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 600;
}

.shema-related-card-title a {
	color: inherit;
	text-decoration: none;
}

.shema-related-card-title a:hover {
	color: #e9204f;
}

.shema-related-thumb {
	display: block;
	overflow: hidden;
}

.shema-related-thumb img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.shema-related-thumb:hover img {
	transform: scale(1.04);
}

.shema-related-card-meta {
	margin: 0;
	font-size: 0.85rem;
	opacity: 0.7;
}

/* Blog single Gutenberg body */
.shema-post-content {
	max-width: 820px;
	font-size: 17px;
	line-height: 1.7;
	color: #3a3a3a; /* same as .shema-page-doc; body inherits #747474 from Gentium */
}

.shema-post-content h2 {
	margin-top: 2em;
	color: #101010;
}

.shema-post-content p {
	color: #3a3a3a;
}

/* Client logos row (homepage / about) — gray by default, color on hover */
.shema-client-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 28px 40px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.shema-client-logos img {
	max-height: 40px;
	width: auto;
}

.shema-client-logos img,
.elementor-element-9711091 .elementor-widget-image img {
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter .3s ease, opacity .3s ease;
}

.shema-client-logos img:hover,
.shema-client-logos a:hover img,
.elementor-element-9711091 .elementor-widget-image:hover img {
	filter: grayscale(0);
	opacity: 1;
}

/* ---- Header logo ---- */
/* Cropped wordmark (no huge PNG padding) — keep aspect ratio and optical center with nav. */
.elementor-37 .elementor-element-3f9125c > .elementor-container {
	align-items: center !important;
}

.elementor-37 .elementor-element-502273f .elementor-widget-wrap,
.elementor-37 .elementor-element-a2a0e5d .elementor-widget-wrap,
.elementor-37 .elementor-element-c07f98d .elementor-widget-wrap {
	align-items: center !important;
	justify-content: center;
}

.shema-header-logo,
.shema-header-logo--sticky,
.elementor-37 .elementor-element-05585ca,
.elementor-104 .elementor-element-523c7d3 {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	line-height: 0;
}

.shema-header-logo .elementor-widget-container,
.shema-header-logo--sticky .elementor-widget-container,
.elementor-37 .elementor-element-05585ca .elementor-widget-container,
.elementor-104 .elementor-element-523c7d3 .elementor-widget-container {
	line-height: 0;
}

.shema-header-logo img,
.shema-header-logo--sticky img,
.elementor-37 .elementor-widget-image img,
.elementor-104 .elementor-widget-image img,
.elementor-37 .elementor-element.elementor-element-05585ca img,
.elementor-104 .elementor-element.elementor-element-523c7d3 img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: min(250px, 100%);
	max-height: 56.25px;
	object-fit: contain;
}

.shema-header-logo--sticky img,
.elementor-104 .elementor-element.elementor-element-523c7d3 img {
	max-height: 40.625px;
	max-width: min(187.5px, 100%);
}

/* Header was rgba black — hero accent bled through under the logo. */
.elementor-37 .elementor-element-3f9125c,
.elementor-37 .elementor-element-3f9125c > .elementor-background-overlay {
	background-color: #000 !important;
}

/* Full-bleed title/hero sits under the transparent fixed header. */
.pixe-single-post-header-full,
.section-title.thumbnail-bg {
	margin-top: -170px;
}

/*
 * Light pages (IDs 326, 330, 226): dark nav/logo/lang over white header.
 * Sticky header template = Elementor 104; mobile bar matched separately.
 */
.page-id-326 header.site-header .pr-main-menu > .menu-item > a,
.page-id-326 .elementor-widget-heading .elementor-heading-title > a,
.page-id-326 #mobile-header .toggle-icon i,
.page-id-326 .mobile-logo h1.site-title a,
.page-id-330 header.site-header .pr-main-menu > .menu-item > a,
.page-id-330 .elementor-widget-heading .elementor-heading-title > a,
.page-id-330 #mobile-header .toggle-icon i,
.page-id-330 .mobile-logo h1.site-title a,
.page-id-330 .lang,
.page-id-330 .lang select,
.page-id-226 .lang,
.page-id-226 .lang select {
	color: #101010 !important;
}

.page-id-326 .elementor-104 .elementor-element.elementor-element-3f9125c,
.page-id-330 .elementor-104 .elementor-element.elementor-element-3f9125c,
.page-id-326 #mobile-header,
.page-id-330 #mobile-header {
	background-color: #fff !important;
}

/*
 * Nav underline: on the front page every #anchor item is .current-menu-item —
 * suppress permanent bars there. On inner pages show current item again.
 */
body.home .pr_nav_anime_br .pr-main-menu > .menu-item > a:before,
body.home .pr_nav_anime_br .pr-main-menu > .menu-item.current-menu-item > a:before,
body.home .pr_nav_anime_br .pr-main-menu > .menu-item.current_page_item > a:before,
body.home .pr_nav_anime_br .pr-main-menu > .menu-item.uk-active > a:before {
	width: 0 !important;
}

.pr_nav_anime_br .pr-main-menu > .menu-item:hover > a:before,
body:not(.home) .pr_nav_anime_br .pr-main-menu > .menu-item.current-menu-item > a:before,
body:not(.home) .pr_nav_anime_br .pr-main-menu > .menu-item.current_page_item > a:before {
	width: 20px !important;
	background-color: #e9204f !important;
}

/*
 * Gentium demo layout helpers (moved from Elementor HTML <style> widget).
 * Classes are still assigned on homepage widgets/sections in Elementor.
 */
.r__shape,
.r2__shape {
	position: relative;
}

.r__shape:after {
	content: "";
	background-color: #e9204f;
	height: 70px;
	width: calc(100% + 20px);
	position: absolute;
	bottom: -20px;
	z-index: -1;
}

.r2__shape:after {
	content: "";
	background-color: #e9204f;
	height: 100px;
	width: 100px;
	position: absolute;
	bottom: -20px;
	right: -20px;
	z-index: -1;
}

@media (max-width: 960px) {
	.r__shape:after,
	.r2__shape:after {
		display: none;
	}
}

.pr__section:before {
	content: "";
	background-color: #e9204f;
	height: 60px;
	width: 2px;
	position: absolute;
	top: -30px;
	left: 50%;
}

.pr__flex_col .elementor-widget-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

span.pr_required {
	color: #e9204f;
}

/*
 * Services .section__flex: layout/gaps/columns come from Elementor
 * container settings (grid). Only keep classic-section fallbacks for backup page.
 */
.section__flex .elementor-container.elementor-column-gap-default {
	flex-wrap: wrap;
}

.section__flex .elementor-column {
	width: 33.3333%;
}

.pr__flex_col .elementor-widget-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

/* ---- Site footer bar ---- */
.shema-site-footer-section .elementor-widget-html {
	width: 100%;
}

/* Footer CTA band — class from Elementor Advanced CSS Classes (no element ID hardcode) */
.shema-footer-cta > .elementor-container {
	align-items: center;
}

.shema-footer-cta .elementor-heading-title {
	margin: 0;
	line-height: 1.15;
}

.shema-site-footer {
	display: grid;
	grid-template-columns: minmax(200px, 1.2fr) minmax(220px, 1.4fr) auto;
	gap: 24px 40px;
	align-items: center;
	width: 100%;
	color: #9a9a9a;
	font-size: 13px;
	line-height: 1.45;
}

.shema-site-footer a {
	color: #cfcfcf;
	text-decoration: none;
	transition: color 0.2s ease;
}

.shema-site-footer a:hover {
	color: #e9204f;
}

.shema-site-footer__copyright,
.shema-site-footer__legal-entity {
	margin: 0;
}

.shema-site-footer__legal-entity {
	margin-top: 6px;
	opacity: 0.9;
}

.shema-site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	justify-content: flex-start;
}

.shema-site-footer__nav a {
	position: relative;
	white-space: nowrap;
}

/* Social icons (Simple Icons, currentColor) */
.shema-social {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.shema-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #f2f2f2 !important;
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.shema-social__link:hover {
	color: #fff !important;
	border-color: #e9204f;
	background: rgba(233, 32, 79, 0.15);
}

.shema-social__link svg {
	width: 18px;
	height: 18px;
	display: block;
}

.shema-social--contact {
	margin-top: 4px;
}

/* Social icons on light backgrounds (post/portfolio sidebar) */
.shema-social--on-light .shema-social__link {
	border-color: rgba(16, 16, 16, 0.2);
	color: #101010 !important;
}

.shema-social--on-light .shema-social__link:hover {
	color: #fff !important;
	border-color: #e9204f;
	background: #e9204f;
}

.shema-post-social {
	margin-top: 1.5rem;
}

.shema-post-social .shema-social {
	flex-wrap: wrap;
}

.shema-site-footer__social {
	justify-self: end;
}

@media (max-width: 1024px) {
	.shema-site-footer {
		grid-template-columns: 1fr auto;
		gap: 20px;
	}

	.shema-site-footer__nav {
		grid-column: 1 / -1;
		order: 3;
	}

	.shema-site-footer__social {
		justify-self: end;
	}
}

@media (max-width: 600px) {
	.shema-site-footer {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.shema-site-footer__nav {
		order: 2;
	}

	.shema-site-footer__social {
		order: 3;
		justify-self: start;
	}

	/* Room for fixed cookie bar */
	.shema-site-footer-section {
		padding-bottom: 88px !important;
	}
}

/* Legacy selectors (keep harmless) */
.shema-footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	font-size: 14px;
}

.shema-footer-social {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Gravity Forms — заявка в стиле Gentium / СХЕМА */
.gform_wrapper.gform-theme,
.gform_wrapper.gform-theme--orbital,
.gform_wrapper.gravity-theme,
.gform_wrapper {
	--gf-color-primary: #e9204f;
	--gf-color-primary-rgb: 233, 32, 79;
	--gf-color-primary-contrast: #fff;
	--gf-color-primary-darker: #e81747;
	--gf-color-primary-lighter: #ff4d73;
	--gf-color-in-ctrl-primary: #e9204f;
	--gf-color-in-ctrl-primary-rgb: 233, 32, 79;
	--gf-color-in-ctrl-primary-contrast: #fff;
	--gf-color-in-ctrl-primary-darker: #e81747;
	--gf-color-in-ctrl-primary-lighter: #ff4d73;
	--gf-ctrl-border-color: #e0e0e0;
	--gf-ctrl-label-color-primary: #101010;
	--gf-ctrl-label-color-secondary: #747474;
	--gf-radius: 0px;
	--gf-font-family: var(--shema-font);
	max-width: 100%;
	margin: 0;
	font-family: var(--shema-font);
}

.gform_wrapper .gform_heading {
	display: none;
}

.gform_wrapper .gform_body,
.gform_wrapper .gform_fields {
	display: block !important;
	grid-template-columns: none !important;
	gap: 0 !important;
	row-gap: 0 !important;
}

.gform_wrapper .gfield {
	margin: 0 0 16px !important;
	padding: 0 !important;
}

.gform_wrapper .gfield.gfield--type-checkbox,
.gform_wrapper .gfield.gfield--type-consent {
	margin-top: 8px !important;
	margin-bottom: 20px !important;
}

.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label {
	font-family: var(--shema-font) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #101010 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	margin: 0 0 8px !important;
}

/* Keep labels visible for a11y (placeholders alone are not enough). */
.gform_wrapper.hidden_label .gfield--type-text .gfield_label,
.gform_wrapper.hidden_label .gfield--type-email .gfield_label,
.gform_wrapper.hidden_label .gfield--type-phone .gfield_label,
.gform_wrapper.hidden_label .gfield--type-textarea .gfield_label,
.gform_wrapper .hidden_label .gfield--type-text .gfield_label,
.gform_wrapper .hidden_label .gfield--type-email .gfield_label,
.gform_wrapper .hidden_label .gfield--type-phone .gfield_label,
.gform_wrapper .hidden_label .gfield--type-textarea .gfield_label {
	position: static !important;
	width: auto !important;
	height: auto !important;
	clip: auto !important;
	overflow: visible !important;
	margin: 0 0 8px !important;
}

.gform_wrapper .gfield_required,
.gform_wrapper .gfield_required_text {
	color: #e9204f !important;
}

.gform_wrapper .ginput_container {
	margin: 0 !important;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="phone"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper textarea,
.gform_wrapper .ginput_container input,
.gform_wrapper .ginput_container textarea {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	min-height: 54px !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 16px 18px !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #101010 !important;
	font-family: var(--shema-font) !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	transition: border-color 0.25s ease, color 0.25s ease;
}

.gform_wrapper textarea,
.gform_wrapper .ginput_container textarea {
	min-height: 140px !important;
	resize: vertical;
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
	color: #9a9a9a !important;
	opacity: 1;
}

.gform_wrapper input:hover,
.gform_wrapper textarea:hover,
.gform_wrapper select:hover {
	border-color: #c8c8c8 !important;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
	border-color: #e9204f !important;
	outline: none !important;
	box-shadow: none !important;
}

.gform_wrapper input:focus-visible,
.gform_wrapper textarea:focus-visible,
.gform_wrapper select:focus-visible,
.gform_wrapper .gform_button:focus-visible,
.gform_wrapper input[type="submit"]:focus-visible {
	outline: 2px solid #e9204f !important;
	outline-offset: 2px !important;
	box-shadow: none !important;
}

.gform_wrapper .gfield_checkbox,
.gform_wrapper .gfield_radio {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gform_wrapper .gchoice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 !important;
}

.gform_wrapper .gfield-choice-input,
.gform_wrapper input[type="checkbox"],
.gform_wrapper input[type="radio"] {
	width: 18px !important;
	height: 18px !important;
	min-height: 18px !important;
	min-width: 18px !important;
	margin: 3px 0 0 !important;
	padding: 0 !important;
	accent-color: #e9204f;
	border: 1px solid #c8c8c8 !important;
	border-radius: 0 !important;
	flex: 0 0 auto;
	cursor: pointer;
}

.gform_wrapper .gchoice label,
.gform_wrapper .gfield_checkbox label,
.gform_wrapper .gfield_consent_label {
	font-family: var(--shema-font) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: #747474 !important;
	text-transform: none !important;
	cursor: pointer;
}

.gform_wrapper .gchoice label a,
.gform_wrapper .gfield_consent_label a {
	color: #e9204f !important;
	text-decoration: none;
}

.gform_wrapper .gchoice label a:hover,
.gform_wrapper .gfield_consent_label a:hover {
	color: #e81747 !important;
	text-decoration: underline;
}

/* Hide bulky checkbox field legend — choice label is enough */
.gform_wrapper .gfield--type-checkbox legend.gfield_label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.gform_wrapper .gform_footer,
.gform_wrapper .gform_page_footer {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	justify-content: flex-start !important;
}

.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"].gform_button,
.gform_wrapper .gform-theme-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	min-width: 220px !important;
	min-height: 55px !important;
	margin: 4px 0 0 !important;
	padding: 0 40px !important;
	border: 2px solid #e9204f !important;
	border-radius: 0 !important;
	background: #e9204f !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: var(--shema-font) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	letter-spacing: -0.2px !important;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"].gform_button:hover,
.gform_wrapper .gform-theme-button:hover {
	background: #e81747 !important;
	border-color: #e81747 !important;
	color: #fff !important;
}

.gform_wrapper .gform_validation_errors,
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message {
	font-family: var(--shema-font) !important;
	font-size: 13px !important;
	color: #e9204f !important;
}

.gform_wrapper .gform_confirmation_message {
	font-family: var(--shema-font) !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	color: #101010 !important;
	line-height: 1.5;
}

/* Modal / dark surfaces */
.uk-modal .gform_wrapper input[type="text"],
.uk-modal .gform_wrapper input[type="email"],
.uk-modal .gform_wrapper input[type="tel"],
.uk-modal .gform_wrapper textarea,
.uk-modal .gform_wrapper .ginput_container input,
.uk-modal .gform_wrapper .ginput_container textarea {
	background: #fff !important;
}

/* Hide duplicate «Обсудим?» inside modal form template */
.shema-hide-duplicate-title {
	display: none !important;
}

/* Cookie notice */
.shema-cookie-notice {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 14px 20px;
	background: #101010;
	color: #f5f5f5;
	font-family: var(--shema-font);
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.shema-cookie-notice p {
	margin: 0;
	flex: 1 1 240px;
	max-width: 52rem;
}

.shema-cookie-notice a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.shema-cookie-notice a:hover {
	color: #e9204f;
}

.shema-cookie-notice__btn {
	flex: 0 0 auto;
	appearance: none;
	border: 1px solid #e9204f;
	background: #e9204f;
	color: #fff;
	font: inherit;
	font-weight: 600;
	padding: 10px 18px;
	cursor: pointer;
}

.shema-cookie-notice__btn:hover {
	background: #e81747;
	border-color: #e81747;
}

@media (max-width: 600px) {
	.shema-cookie-notice {
		padding: 12px 16px 16px;
	}
}

/* Gutenberg color palette (editor + frontend) */
.has-shema-black-color { color: #101010; }
.has-shema-text-color { color: #3a3a3a; }
.has-shema-muted-color { color: #747474; }
.has-shema-accent-color { color: #e9204f; }
.has-shema-surface-color { color: #f6f6f6; }
.has-shema-white-color { color: #ffffff; }
.has-shema-black-background-color { background-color: #101010; }
.has-shema-text-background-color { background-color: #3a3a3a; }
.has-shema-muted-background-color { background-color: #747474; }
.has-shema-accent-background-color { background-color: #e9204f; }
.has-shema-surface-background-color { background-color: #f6f6f6; }
.has-shema-white-background-color { background-color: #ffffff; }

/* ------------------------------------------------------------------
   Gutenberg pages (non-Elementor) — readable measure & rhythm
------------------------------------------------------------------- */
body.page:not(.elementor-page) .page-title .entry-title,
body.page:not(.elementor-page) .pr-page-title .entry-title,
body.page:not(.elementor-page) h1.entry-title {
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	max-width: 18ch;
	font-size: clamp(1.75rem, 3.2vw, 2.625rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
}

/* Width follows theme metabox (full / left / right) via page.php grid — no extra max-width. */
.shema-page-doc {
	max-width: none;
	margin: 0;
	padding: 8px 0 40px;
	font-size: 17px;
	line-height: 1.7;
	color: #3a3a3a;
}

.shema-page-doc > *:first-child {
	margin-top: 0;
}

.shema-page-doc p {
	margin: 0 0 1.15em;
	color: #3a3a3a;
}

.shema-page-doc h2,
.shema-page-doc .wp-block-heading {
	margin: 2.4em 0 0.7em;
	font-size: 1.375rem;
	line-height: 1.3;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #101010;
	scroll-margin-top: 100px;
}

.shema-page-doc h2:first-of-type,
.shema-page-doc .wp-block-heading:first-of-type {
	margin-top: 1.25em;
}

/*
 * Gutenberg lists — shared across legal pages, portfolio cases, blog posts.
 * Red disc / red numbers; do not nest under Elementor chrome lists.
 */
.shema-page-doc ul,
.shema-page-doc ol,
.shema-portfolio-content ul,
.shema-portfolio-content ol,
.shema-post-content ul,
.shema-post-content ol {
	margin: 0 0 1.35em;
	padding-left: 1.25em;
	color: #3a3a3a;
}

.shema-page-doc li,
.shema-portfolio-content li,
.shema-post-content li {
	margin: 0 0 0.45em;
	padding-left: 0.25em;
	line-height: 1.65;
}

.shema-page-doc ul,
.shema-portfolio-content ul,
.shema-post-content ul {
	list-style: none;
	padding-left: 0;
}

.shema-page-doc ul > li,
.shema-portfolio-content ul > li,
.shema-post-content ul > li {
	position: relative;
	padding-left: 1.15em;
}

.shema-page-doc ul > li::before,
.shema-portfolio-content ul > li::before,
.shema-post-content ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7em;
	width: 0.4em;
	height: 0.4em;
	border-radius: 50%;
	background: #e9204f;
}

.shema-page-doc ol,
.shema-portfolio-content ol,
.shema-post-content ol {
	list-style: decimal;
	padding-left: 1.35em;
}

.shema-page-doc ol > li::marker,
.shema-portfolio-content ol > li::marker,
.shema-post-content ol > li::marker {
	color: #e9204f;
	font-weight: 600;
}

.shema-page-doc a,
.shema-portfolio-content a,
.shema-post-content a {
	color: #e9204f;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}

.shema-page-doc a:hover,
.shema-portfolio-content a:hover,
.shema-post-content a:hover {
	color: #101010;
}

/* Optional Gutenberg utilities (add class in editor) */
.shema-page-doc .shema-doc-meta,
.shema-page-doc p.shema-doc-meta {
	margin: 0 0 1.75rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #747474;
}

.shema-page-doc .shema-doc-facts,
.shema-page-doc .shema-legal-facts {
	margin: 0.35em 0 1.5em;
	padding: 1.35rem 1.4rem;
	background: #f6f6f6;
	border-left: 3px solid #e9204f;
}

.shema-page-doc .shema-doc-facts p,
.shema-page-doc .shema-legal-facts p {
	margin: 0 0 0.35em;
	font-size: 0.98em;
	line-height: 1.5;
	color: #101010;
}

.shema-page-doc .shema-doc-facts p:last-child,
.shema-page-doc .shema-legal-facts p:last-child {
	margin-bottom: 0;
}

@media (max-width: 782px) {
	.shema-page-doc {
		padding-left: 4px;
		padding-right: 4px;
	}

	body.page:not(.elementor-page) .page-title .entry-title,
	body.page:not(.elementor-page) h1.entry-title {
		max-width: none;
	}
}
