:root {
	--brn-bg: #FFFDF7;
	--brn-surface: #FFFFFF;
	--brn-surface-sky: #EEF6FD;
	--brn-surface-sun: #FFF5DA;
	--brn-blue: #1E4FA8;
	--brn-blue-deep: #163C82;
	--brn-blue-night: #102C61;
	--brn-sky: #5BB4F0;
	--brn-sun: #FFC93C;
	--brn-sun-deep: #F2B20F;
	--brn-green: #6CC28E;
	--brn-coral: #FF8A65;
	--brn-ink: #1B2A4A;
	--brn-ink-soft: #4A5876;
	--brn-line: #E3E9F5;
	--brn-radius: 18px;
	--brn-radius-small: 12px;
	--brn-radius-large: 28px;
	--brn-radius-pill: 999px;
	--brn-shadow: 0 12px 32px rgba(30, 79, 168, 0.08);
	--brn-shadow-strong: 0 18px 44px rgba(16, 44, 97, 0.16);
	--brn-shadow-deep: 0 30px 80px rgba(8, 24, 58, 0.34);
	--brn-inner-page-width: 1320px;
	--brn-sidebar-width: 300px;
	--brn-sidebar-gap: 40px;
	--brn-error-ink: #9A3412;
	--brn-error-surface: #FFF1EC;
	--brn-success-ink: #1E6B42;
	--brn-success-surface: #EAF7EF;
	--brn-font-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--brn-font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
	--brn-ornament: url('../images/ornament.svg');
	--brn-ornament-height: 18px;
	--brn-ornament-tile-width: calc(var(--brn-ornament-height) * 40 / 14);
	--brn-header-height: 96px;
}

/* ---------- Base ---------- */

html {
	scroll-padding-top: calc(var(--brn-header-height) + 16px);
}

body,
body.home {
	background-color: var(--brn-bg) !important;
	color: var(--brn-ink);
	font-family: var(--brn-font-text);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

a,
a > * {
	color: var(--brn-blue);
}

a:hover,
a:focus {
	color: var(--brn-blue-deep);
}

::selection {
	background-color: var(--brn-sun);
	color: var(--brn-ink);
}

:focus-visible {
	outline: 3px solid var(--brn-sky);
	outline-offset: 2px;
}

h1, h2, h3, h4,
.entry-title,
.section-title h1,
.theme-title {
	font-family: var(--brn-font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	text-transform: none;
}

h5, h6 {
	font-family: var(--brn-font-text);
	font-weight: 700;
}

h1 { font-size: clamp(28px, 3.4vw, 44px); color: var(--brn-blue); }
h2 { font-size: clamp(24px, 2.6vw, 34px); color: var(--brn-blue); }
h3 { font-size: clamp(20px, 2vw, 26px); color: var(--brn-ink); }
h4 { font-size: clamp(18px, 1.6vw, 21px); color: var(--brn-ink); }

img {
	border-radius: 0;
}

/* ---------- Decisions carried over from the site's old Additional CSS ---------- */

.link-icon,
.portfolio-filter,
.single-post-nav,
.comment-respond {
	display: none !important;
}

#sidebar {
	text-align: center;
}

.accHorizontal .accHorizontal__item .acc_cBox .acc_cImg header h3 {
	font-size: 20px !important;
}

/* ---------- Constructor groups: the background image sits above the group colour ---------- */

.section {
	position: relative;
	isolation: isolate;
}

#wrapper .section:not([style*="background-color"]) {
	background-color: transparent;
}

/* ---------- Header and navigation ---------- */

.loader,
#qLoverlay {
	display: none !important;
}

.not-ie #header .header-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font: inherit;
	text-align: left;
}

.not-ie #header .header-in::after {
	display: none;
}

#header #logo {
	flex: 0 0 auto;
	max-width: none;
	margin: 0;
	line-height: 0;
}

@media only screen and (min-width: 993px) {
	#header #navigation {
		flex: 1 1 auto;
		display: block;
	}

	#header #navigation > ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		align-items: center;
		row-gap: 4px;
	}

	#header #navigation > ul > li {
		float: none;
	}
}

#header,
#header.transparent,
#header.header-shrink {
	background-color: rgba(255, 253, 247, 0.96);
	border-bottom: 1px solid var(--brn-line);
	box-shadow: 0 6px 24px rgba(30, 79, 168, 0.06);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
}

#header .header-in {
	width: min(1440px, 96%);
	padding: 10px 0;
}

#logo img {
	max-height: 84px;
	width: auto;
	transition: max-height 0.25s ease;
}

#header.header-shrink #logo img {
	max-height: 52px;
	max-width: none !important;
}

.navigation a,
.navigation > ul > li > a {
	font-family: var(--brn-font-text);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

@media only screen and (min-width: 993px) {
	.navigation > ul > li > a,
	.transparent .navigation > ul > li > a,
	.transparent .navigation > ul > li.downarrowclass > a,
	.header-shrink .navigation > ul > li > a {
		margin: 0 2px;
		padding: 11px 13px !important;
		border-radius: var(--brn-radius-pill);
		color: var(--brn-ink) !important;
		font-size: 15px;
		line-height: 1.2;
		background-color: transparent;
		background-image: linear-gradient(var(--brn-sun), var(--brn-sun));
		background-repeat: no-repeat;
		background-position: 50% calc(100% - 6px);
		background-size: 0 3px;
		transition: background-size 0.25s ease, color 0.2s ease, background-color 0.2s ease;
	}

	.transparent .navigation > ul > li > a,
	.transparent .navigation > ul > li > a::after {
		width: auto !important;
	}

	.transparent .navigation,
	.header-shrink .navigation {
		border-bottom: 0;
	}

	.navigation > ul > li:hover > a,
	.header-shrink .navigation > ul > li:hover > a {
		background-color: transparent !important;
		background-size: calc(100% - 26px) 3px;
		color: var(--brn-blue) !important;
	}

	.navigation > ul > .current-menu-item > a,
	.navigation > ul > .current_page_ancestor > a,
	.navigation > ul > .current_page_item > a,
	.navigation > ul > .current-menu-ancestor > a,
	.navigation > ul > .current-menu-parent > a,
	.transparent .navigation > ul > .current-menu-item > a,
	.transparent .navigation > ul > .current_page_ancestor > a,
	.header-shrink .navigation > ul > .current-menu-item > a,
	.header-shrink .navigation > ul > .current_page_ancestor > a {
		background-color: var(--brn-blue) !important;
		background-image: none;
		color: #fff !important;
	}

	.navigation > ul > .downarrowclass > a::after,
	.navigation > ul > li > a::after {
		color: inherit !important;
		opacity: 0.7;
	}

	.navigation ul ul {
		margin-top: 8px;
		padding: 10px;
		width: 270px;
		border-top: 3px solid var(--brn-sun);
		border-radius: 0 0 var(--brn-radius-small) var(--brn-radius-small);
		background-color: var(--brn-surface);
		box-shadow: var(--brn-shadow-strong);
	}

	.navigation ul ul ul {
		left: 270px;
		margin-top: -13px;
		border-top: 0;
		border-radius: var(--brn-radius-small);
	}

	.navigation ul ul li a {
		padding: 9px 12px;
		border-radius: 10px;
		color: var(--brn-ink) !important;
		font-size: 14.5px;
		font-weight: 500;
		line-height: 1.4;
		text-transform: none;
	}

	.navigation ul ul li:hover > a,
	.navigation ul ul .current-menu-item > a,
	.navigation ul ul .current-menu-ancestor > a {
		background-color: var(--brn-surface-sky);
		color: var(--brn-blue) !important;
	}

	.navigation ul ul .rightarrowclass > a::after {
		color: var(--brn-blue);
	}
}

@media only screen and (min-width: 993px) and (max-width: 1439px) {
	.navigation > ul > li > a,
	.transparent .navigation > ul > li > a,
	.transparent .navigation > ul > li.downarrowclass > a,
	.header-shrink .navigation > ul > li > a {
		margin: 0 1px;
		padding: 9px 9px !important;
		font-size: 14px;
	}

	.navigation > ul > li:hover > a,
	.header-shrink .navigation > ul > li:hover > a {
		background-size: calc(100% - 18px) 3px;
	}
}

@media only screen and (min-width: 993px) and (max-width: 1239px) {
	:root {
		--brn-header-height: 140px;
	}

	.navigation > ul > li > a,
	.transparent .navigation > ul > li > a,
	.transparent .navigation > ul > li.downarrowclass > a,
	.header-shrink .navigation > ul > li > a {
		padding: 8px 7px !important;
		font-size: 13.5px;
	}

	#logo img {
		max-height: 70px;
	}
}

.responsive-nav-button {
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background-color: var(--brn-blue);
	box-shadow: var(--brn-shadow);
	line-height: 46px;
}

@media only screen and (max-width: 992px) {
	#header .header-in {
		width: 92%;
	}

	.not-ie #header .header-in {
		flex-wrap: wrap;
	}

	#header #navigation {
		flex: 0 0 100%;
		order: 3;
		width: 100%;
	}

	.navigation ul li a,
	.navigation ul ul li a {
		text-transform: none !important;
	}

	#logo img {
		max-height: 60px;
	}

	#header #navigation {
		margin: 10px 0 6px;
		border-radius: var(--brn-radius);
		background-color: var(--brn-surface);
		box-shadow: var(--brn-shadow);
	}

	.navigation ul li > a,
	.navigation > ul > li > a {
		margin: 0;
		padding: 13px 18px !important;
		border-bottom: 1px solid var(--brn-line);
		background-color: var(--brn-surface) !important;
		color: var(--brn-ink) !important;
		font-size: 16px;
		text-align: left;
	}

	.navigation ul .current-menu-item > a,
	.navigation ul .current-menu-ancestor > a,
	.navigation ul .current-menu-parent > a {
		color: var(--brn-blue) !important;
		font-weight: 700;
		box-shadow: inset 4px 0 0 var(--brn-sun);
	}

	.navigation ul ul {
		padding: 0 0 0 12px;
		background-color: var(--brn-surface-sky);
	}

	.navigation ul ul li a {
		background-color: transparent !important;
		font-size: 15px;
		font-weight: 500;
	}
}

/* ---------- Page titles and ornament ---------- */

.section-title h1,
.page .section-title h1 {
	margin-bottom: 0;
	color: var(--brn-blue);
	font-size: clamp(28px, 3.6vw, 46px);
	text-transform: none !important;
}

body.single-post .section-title h1 {
	max-width: 22ch;
	margin-right: auto;
	margin-left: auto;
	font-size: clamp(24px, 2.8vw, 38px);
}

body.single-post #main .entry.main-entry > .entry-title {
	display: none;
}

.section-title,
.border-title {
	position: relative;
	padding-bottom: calc(var(--brn-ornament-height) + 26px);
}

hgroup.section-title::after,
.section-title::after,
.border-title::after,
.parallax .border-title::after,
.theme-title.border-title::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	margin-left: 0 !important;
	width: min(280px, 70%) !important;
	height: var(--brn-ornament-height) !important;
	border: 0;
	background: transparent var(--brn-ornament) repeat-x 0 50% / auto var(--brn-ornament-height) !important;
	transform: translateX(-50%);
}

.border-title::before {
	display: none !important;
}

.theme-title,
h1.theme-title,
h2.theme-title {
	color: var(--brn-blue) !important;
	font-family: var(--brn-font-display) !important;
	font-size: clamp(26px, 3.4vw, 44px) !important;
	font-weight: 600 !important;
	letter-spacing: -0.01em;
	text-transform: none !important;
}

h2.theme-title {
	color: var(--brn-ink-soft) !important;
	font-family: var(--brn-font-text) !important;
	font-size: clamp(16px, 1.6vw, 20px) !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase !important;
}

/* ---------- Content ---------- */

#main,
#content .entry-body,
.page #content {
	color: var(--brn-ink);
}

#main p,
#main li,
.entry-body p,
.entry-body li {
	font-size: 17px;
	line-height: 1.75;
}

section.page [style*="font-family"],
section.page font[face] {
	font-family: inherit !important;
}

section.page [style*="color: #000000"],
section.page [style*="color:#000000"],
section.page [style*="color: rgb(0, 0, 0)"],
section.page font[color="#000000"] {
	color: inherit !important;
}

#main a:not(.button),
.entry-body a:not(.button) {
	text-decoration: underline;
	text-decoration-color: rgba(30, 79, 168, 0.35);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
	transition: text-decoration-color 0.2s ease, background-color 0.2s ease;
}

#main a:not(.button):hover,
.entry-body a:not(.button):hover {
	text-decoration-color: var(--brn-sun);
	background-color: var(--brn-surface-sun);
}

#main blockquote,
.entry-body blockquote {
	margin: 24px 0;
	padding: 18px 24px;
	border-left: 5px solid var(--brn-sun);
	border-radius: 0 var(--brn-radius-small) var(--brn-radius-small) 0;
	background-color: var(--brn-surface-sun);
	color: var(--brn-ink);
}

#main table {
	overflow: hidden;
	border-radius: var(--brn-radius-small);
	border-collapse: separate;
	border-spacing: 0;
	box-shadow: 0 0 0 1px var(--brn-line);
}

#main table th {
	background-color: var(--brn-blue);
	color: #fff;
	font-weight: 700;
}

#main table td,
#main table th {
	padding: 10px 14px;
	border-color: var(--brn-line);
}

#main table tr:nth-child(even) td {
	background-color: var(--brn-surface-sky);
}

#main img,
.entry-body img {
	border-radius: var(--brn-radius-small);
}

/* Document links: PDFs, Word, Excel and Google Drive files get a file badge */

#main a[href$=".pdf" i]:not(.button),
#main a[href$=".doc" i]:not(.button),
#main a[href$=".docx" i]:not(.button),
#main a[href$=".xls" i]:not(.button),
#main a[href$=".xlsx" i]:not(.button),
#main a[href$=".ppt" i]:not(.button),
#main a[href$=".pptx" i]:not(.button),
#main a[href*="drive.google.com"]:not(.button),
#main a[href*="docs.google.com"]:not(.button) {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0;
	padding: 8px 14px 8px 10px;
	border: 1px solid var(--brn-line);
	border-radius: var(--brn-radius-small);
	background-color: var(--brn-surface);
	color: var(--brn-ink);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: 0 2px 0 rgba(30, 79, 168, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#main a[href$=".pdf" i]:not(.button)::before,
#main a[href$=".doc" i]:not(.button)::before,
#main a[href$=".docx" i]:not(.button)::before,
#main a[href$=".xls" i]:not(.button)::before,
#main a[href$=".xlsx" i]:not(.button)::before,
#main a[href$=".ppt" i]:not(.button)::before,
#main a[href$=".pptx" i]:not(.button)::before,
#main a[href*="drive.google.com"]:not(.button)::before,
#main a[href*="docs.google.com"]:not(.button)::before {
	content: 'ДОК';
	flex: 0 0 auto;
	padding: 5px 7px;
	border-radius: 8px;
	background-color: var(--brn-blue);
	color: #fff;
	font-family: var(--brn-font-text);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

#main a[href$=".pdf" i]:not(.button)::before { content: 'PDF'; background-color: #D9534F; }
#main a[href$=".doc" i]:not(.button)::before,
#main a[href$=".docx" i]:not(.button)::before { content: 'DOC'; background-color: var(--brn-blue); }
#main a[href$=".xls" i]:not(.button)::before,
#main a[href$=".xlsx" i]:not(.button)::before { content: 'XLS'; background-color: #2E8B57; }
#main a[href$=".ppt" i]:not(.button)::before,
#main a[href$=".pptx" i]:not(.button)::before { content: 'PPT'; background-color: var(--brn-coral); }
#main a[href*="drive.google.com"]:not(.button)::before,
#main a[href*="docs.google.com"]:not(.button)::before { content: 'ДИСК'; background-color: var(--brn-sky); }

#main :is(a[href$=".pdf" i], a[href$=".doc" i], a[href$=".docx" i], a[href$=".xls" i], a[href$=".xlsx" i], a[href$=".ppt" i], a[href$=".pptx" i], a[href*="drive.google.com"], a[href*="docs.google.com"]):not(.button) :is(em, strong, b, i, u, span) {
	display: contents;
}

#main a[href$=".pdf" i]:not(.button):hover,
#main a[href$=".doc" i]:not(.button):hover,
#main a[href$=".docx" i]:not(.button):hover,
#main a[href$=".xls" i]:not(.button):hover,
#main a[href$=".xlsx" i]:not(.button):hover,
#main a[href$=".ppt" i]:not(.button):hover,
#main a[href$=".pptx" i]:not(.button):hover,
#main a[href*="drive.google.com"]:not(.button):hover,
#main a[href*="docs.google.com"]:not(.button):hover {
	border-color: var(--brn-sky);
	background-color: var(--brn-surface);
	box-shadow: var(--brn-shadow);
	transform: translateY(-1px);
}

#main .brn-doc-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}

#main .brn-doc-row em,
#main .brn-doc-row strong,
#main .brn-doc-row span {
	display: contents;
}

#main .brn-doc-row a {
	flex: 1 1 auto;
	margin: 0;
}

/* ---------- Inner pages: wide content beside a slim sidebar ---------- */

@media only screen and (min-width: 993px) {
	#wrapper.sbr #content > .container {
		width: min(var(--brn-inner-page-width), 94%);
		max-width: none;
	}

	#wrapper.sbr #content > .container > .row {
		display: flex;
		align-items: flex-start;
		gap: var(--brn-sidebar-gap);
		margin-right: 0;
		margin-left: 0;
	}

	#wrapper.sbr #content > .container > .row::before,
	#wrapper.sbr #content > .container > .row::after {
		display: none;
	}

	#wrapper.sbr #content > .container > .row > #main {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		padding-right: 0;
		padding-left: 0;
	}

	#wrapper.sbr #content > .container > .row > #sidebar {
		flex: 0 0 var(--brn-sidebar-width);
		width: var(--brn-sidebar-width);
		padding-right: 0;
		padding-left: 0;
	}

	body.single-post #main .entry-body p,
	body.single-post #main .entry-body li {
		font-size: 18px;
	}
}

@media only screen and (min-width: 993px) and (max-width: 1199px) {
	:root {
		--brn-sidebar-width: 270px;
		--brn-sidebar-gap: 28px;
	}
}

@media only screen and (min-width: 1920px) {
	:root {
		--brn-inner-page-width: 1520px;
		--brn-sidebar-width: 340px;
		--brn-sidebar-gap: 48px;
	}

	#header .header-in {
		width: min(var(--brn-inner-page-width), 96%);
	}
}

/* ---------- Buttons and forms ---------- */

.button,
.button.default,
a.button,
input[type="submit"],
button.button {
	padding: 11px 24px;
	border: 2px solid var(--brn-blue);
	border-radius: var(--brn-radius-pill);
	background-color: transparent;
	color: var(--brn-blue);
	font-family: var(--brn-font-text);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-transform: none;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.button:hover,
.button.default:hover,
a.button:hover,
input[type="submit"]:hover {
	border-color: var(--brn-blue);
	background-color: var(--brn-blue);
	color: #fff;
	box-shadow: var(--brn-shadow);
	transform: translateY(-1px);
}

.button.turquoise,
.button.brn-button-sun,
.wpcf7-submit,
input.wpcf7-submit {
	border-color: var(--brn-sun);
	background-color: var(--brn-sun);
	color: var(--brn-ink) !important;
}

.button.turquoise:hover,
.button.brn-button-sun:hover,
.wpcf7-submit:hover,
input.wpcf7-submit:hover {
	border-color: var(--brn-sun-deep);
	background-color: var(--brn-sun-deep);
	color: var(--brn-ink) !important;
}

.button.brn-button-blue {
	border-color: var(--brn-blue);
	background-color: var(--brn-blue);
	color: #fff;
}

.button.brn-button-blue:hover {
	border-color: var(--brn-blue-deep);
	background-color: var(--brn-blue-deep);
}

.button.brn-button-sky {
	border-color: #fff;
	background-color: #fff;
	color: var(--brn-blue);
}

.button.brn-button-sky:hover {
	border-color: var(--brn-sky);
	background-color: var(--brn-sky);
	color: #fff;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
	padding: 12px 16px;
	border: 1px solid var(--brn-line);
	border-radius: var(--brn-radius-small);
	background-color: var(--brn-surface);
	color: var(--brn-ink);
	font-family: var(--brn-font-text);
	font-size: 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
	border-color: var(--brn-sky);
	box-shadow: 0 0 0 4px rgba(91, 180, 240, 0.25);
	outline: none;
}

::placeholder {
	color: var(--brn-ink-soft);
	opacity: 0.8;
}

/* ---------- News list ---------- */

.entry.main-entry {
	margin-bottom: 28px;
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid var(--brn-line);
	border-radius: var(--brn-radius);
	background-color: var(--brn-surface);
	box-shadow: var(--brn-shadow);
}

.entry-meta {
	font-size: 0;
}

.entry-meta > span:not(.date),
.entry-meta .comments {
	display: none;
}

.entry-meta span::after {
	content: none !important;
}

.entry-meta .date,
.entry-meta .date a {
	display: inline-block;
	padding: 4px 12px;
	line-height: 1.5;
	border-radius: var(--brn-radius-pill);
	background-color: var(--brn-surface-sun);
	color: var(--brn-ink) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
}

.entry-meta .date a {
	padding: 0;
	background: none;
}

.entry.main-entry .entry-title {
	margin: 14px 0 10px;
	font-size: clamp(20px, 2.2vw, 28px);
}

.entry.main-entry .entry-title a {
	color: var(--brn-ink);
	text-decoration: none !important;
	background: none !important;
}

.entry.main-entry .entry-title a:hover {
	color: var(--brn-blue);
}

.entry.main-entry .entry-body p {
	color: var(--brn-ink-soft);
}

.page-numbers,
.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	margin: 0 3px;
	padding: 0 12px;
	border: 1px solid var(--brn-line);
	border-radius: var(--brn-radius-pill);
	background-color: var(--brn-surface);
	color: var(--brn-ink);
	font-weight: 700;
	text-decoration: none !important;
}

.page-numbers.current,
.page-numbers:hover {
	border-color: var(--brn-blue);
	background-color: var(--brn-blue);
	color: #fff !important;
}

/* ---------- Sidebar ---------- */

#sidebar .widget {
	margin-bottom: 22px;
	padding: 18px;
	border: 1px solid var(--brn-line);
	border-radius: var(--brn-radius);
	background-color: var(--brn-surface);
	box-shadow: var(--brn-shadow);
}

#sidebar .widget_search {
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

#searchform p {
	position: relative;
	margin: 0;
}

#searchform input[type="text"] {
	width: 100%;
	height: 50px;
	padding: 0 58px 0 20px;
	border: 1px solid var(--brn-line);
	border-radius: var(--brn-radius-pill);
	background-color: var(--brn-surface);
	box-shadow: var(--brn-shadow);
	color: var(--brn-ink);
	font-size: 15.5px;
	font-style: normal;
	text-align: left;
}

#searchform .submit-search {
	top: 5px;
	right: 5px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--brn-radius-pill);
	background-color: var(--brn-blue);
	transition: background-color 0.2s ease;
}

#searchform .submit-search::before {
	color: #fff;
	font-size: 17px;
	line-height: 40px;
}

#searchform .submit-search:hover,
#searchform input[type="text"]:focus + .submit-search {
	background-color: var(--brn-sun);
}

#searchform .submit-search:hover::before,
#searchform input[type="text"]:focus + .submit-search::before {
	color: var(--brn-ink);
}

#sidebar .widget img {
	border-radius: var(--brn-radius-small);
}

#sidebar .wp-element-caption,
#sidebar figcaption {
	color: var(--brn-ink-soft);
	font-weight: 600;
}

/* ---------- Homepage hero built with the layout constructor ---------- */

.section.viewport-full .brn-hero,
.brn-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 100vh;
	padding: calc(var(--brn-header-height) + clamp(28px, 7vh, 90px)) 16px clamp(160px, 32vh, 360px);
	text-align: center;
	box-sizing: border-box;
}

.section.viewport-full:has(.brn-hero) .full-bg-image {
	background-position: 50% 100%;
}

.brn-hero__eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	padding: 7px 16px;
	border-radius: var(--brn-radius-pill);
	background-color: rgba(255, 253, 247, 0.82);
	color: var(--brn-blue) !important;
	font-family: var(--brn-font-text);
	font-size: clamp(12px, 1.3vw, 15px) !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4 !important;
	text-transform: uppercase;
	box-shadow: 0 6px 18px rgba(30, 79, 168, 0.1);
}

.brn-hero__title {
	max-width: 15ch;
	margin: 0 auto 28px;
	color: var(--brn-blue) !important;
	font-family: var(--brn-font-display) !important;
	font-size: clamp(32px, 5.4vw, 76px) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em;
	line-height: 1.06 !important;
	text-shadow: 0 2px 18px rgba(255, 253, 247, 0.85);
}

.brn-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 14px;
	margin: 0 !important;
}

.brn-hero__actions .button {
	margin: 0;
	padding: 14px 26px;
	font-size: clamp(15px, 1.3vw, 17px);
	box-shadow: var(--brn-shadow-strong);
}

/* ---------- Homepage sections whose groups were coloured teal in the constructor ---------- */

.section[style*="00c2a9" i],
.section[style*="0, 194, 169"] {
	background-color: var(--brn-surface-sky) !important;
	color: var(--brn-ink);
}

#about .section[style*="00c2a9" i],
#about .section[style*="0, 194, 169"] {
	background-color: var(--brn-surface-sun) !important;
}

#blog .section,
#blog .section p {
	color: var(--brn-ink);
}

#blog .section .flex-row > [class*="col-"] {
	display: flex;
	margin-bottom: 24px;
}

#blog .section .entry {
	flex: 1 1 auto;
	margin-bottom: 0;
	padding: 24px;
	border: 1px solid var(--brn-line);
	border-radius: var(--brn-radius);
	background-color: var(--brn-surface);
	box-shadow: var(--brn-shadow);
	text-align: left;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#blog .section .entry:hover {
	box-shadow: var(--brn-shadow-strong);
	transform: translateY(-2px);
}

#blog .section .entry .entry-title {
	margin: 12px 0 10px;
	font-size: clamp(17px, 1.4vw, 20px);
	line-height: 1.3;
	overflow-wrap: anywhere;
	hyphens: auto;
}

#blog .section .entry .entry-title a {
	color: var(--brn-ink) !important;
	text-decoration: none;
}

#blog .section .entry .entry-title a:hover {
	color: var(--brn-blue) !important;
}

#blog .section .entry .entry-body p {
	color: var(--brn-ink-soft) !important;
	font-size: 15.5px;
	line-height: 1.65;
}

.section:not(:has(.brn-hero)) > .full-bg-image {
	display: none !important;
}

/* ---------- Useful links: one equal card per organisation ---------- */

.brn-link-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding: 0 16px 18px;
	overflow: hidden;
	border: 1px solid var(--brn-line);
	border-radius: var(--brn-radius-large);
	background-color: var(--brn-bg);
	box-shadow: var(--brn-shadow);
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.brn-link-tile__art {
	display: block;
	width: calc(100% + 32px);
	margin: 0 -16px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.brn-link-tile__art img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 0;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.brn-link-tile:hover .brn-link-tile__art img {
	transform: scale(1.04);
}

.brn-link-tile:hover,
.brn-link-tile:focus-visible {
	border-color: var(--brn-sun);
	box-shadow: var(--brn-shadow-strong);
	transform: translateY(-3px);
}

.brn-link-tile__name {
	color: var(--brn-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.brn-link-tile:hover .brn-link-tile__name {
	color: var(--brn-blue);
}

.row:has(.brn-link-tile) {
	display: flex;
	flex-wrap: wrap;
	row-gap: 24px;
}

.row:has(.brn-link-tile)::before,
.row:has(.brn-link-tile)::after {
	display: none;
}

.row:has(.brn-link-tile) > [class*="col-"] {
	float: none;
	width: 100%;
}

.row:has(.brn-link-tile) > [class*="col-"]:has(.brn-link-tile) {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
}

.row:has(.brn-link-tile) > [class*="col-"]:has(.brn-link-tile) > p {
	display: flex;
	width: 100%;
	margin: 0;
}

@media only screen and (max-width: 991px) {
	.row:has(.brn-link-tile) > [class*="col-"]:has(.brn-link-tile) {
		flex: 0 0 50%;
		width: 50%;
	}

	.brn-link-tile {
		padding: 0 12px 14px;
	}

	.brn-link-tile__art {
		width: calc(100% + 24px);
		margin: 0 -12px;
	}
}

/* ---------- Gallery ---------- */

.work-item .image-extra {
	background-color: rgba(30, 79, 168, 0.72) !important;
}

.portfolio-filter a,
.filter.control {
	border-radius: var(--brn-radius-pill);
	font-weight: 700;
}

/* ---------- Footer: one contact block with the form, the details and the map ---------- */

#footer {
	color: rgba(255, 255, 255, 0.86);
	background-color: var(--brn-blue);
}

#footer::before {
	content: '';
	display: block;
	height: var(--brn-ornament-height);
	background: var(--brn-bg) var(--brn-ornament) repeat-x center / auto var(--brn-ornament-height);
}

#footer .section.parallax,
#footer .brn-contact-section {
	position: relative;
	padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
	overflow: hidden;
	background:
		radial-gradient(ellipse 55% 60% at 0% 100%, rgba(91, 180, 240, 0.3) 0, rgba(91, 180, 240, 0) 70%),
		linear-gradient(160deg, var(--brn-blue) 0%, var(--brn-blue-deep) 100%);
}

#footer .brn-contact-section::before {
	content: '';
	position: absolute;
	top: clamp(-170px, -10vw, -100px);
	right: clamp(-170px, -8vw, -70px);
	width: clamp(240px, 26vw, 400px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, var(--brn-sun) 0 36%, rgba(255, 255, 255, 0.14) 37% 50%, rgba(255, 255, 255, 0.07) 51% 64%, rgba(255, 255, 255, 0) 65%);
	pointer-events: none;
}

#footer .full-bg-image {
	display: none;
}

#footer a,
#footer a > * {
	color: #fff;
}

#footer a:hover {
	color: var(--brn-sun);
}

#footer .widget,
#footer p,
#footer li {
	color: rgba(255, 255, 255, 0.9);
}

#footer .brn-contact-heading {
	position: relative;
	margin: 0 auto clamp(30px, 4vw, 52px);
	text-align: center;
}

#footer .brn-contact-heading__title {
	margin: 0 0 12px;
	color: #fff !important;
	font-family: var(--brn-font-display);
	font-size: clamp(28px, 3.4vw, 46px);
	font-weight: 600;
	line-height: 1.15;
}

#footer .brn-contact-heading__subtitle {
	position: relative;
	margin: 0;
	padding-bottom: calc(var(--brn-ornament-height) + 16px);
	color: var(--brn-sun) !important;
	font-size: clamp(13px, 1.2vw, 15px);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

#footer .brn-contact-heading__subtitle::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: calc(var(--brn-ornament-tile-width) * 4);
	height: var(--brn-ornament-height);
	background: var(--brn-ornament) repeat-x 0 50% / auto var(--brn-ornament-height);
	transform: translateX(-50%);
}

@media only screen and (min-width: 993px) {
	#footer .brn-contact-row {
		display: flex;
		align-items: stretch;
		gap: clamp(24px, 3vw, 40px);
		margin-right: 0;
		margin-left: 0;
	}

	#footer .brn-contact-row::before,
	#footer .brn-contact-row::after {
		display: none;
	}

	#footer .brn-contact-column {
		float: none;
		padding-right: 0;
		padding-left: 0;
	}

	#footer .brn-contact-column--form {
		flex: 1 1 56%;
		width: auto;
	}

	#footer .brn-contact-column--details {
		flex: 1 1 44%;
		width: auto;
	}
}

@media only screen and (max-width: 992px) {
	#footer .brn-contact-column--form {
		margin-bottom: 22px;
	}
}

#footer .brn-contact-card {
	height: 100%;
	padding: clamp(22px, 3vw, 36px);
	border-radius: var(--brn-radius-large);
	background-color: var(--brn-surface);
	box-shadow: var(--brn-shadow-deep);
	color: var(--brn-ink);
}

#footer .brn-contact-card__title {
	margin: 0 0 18px;
	color: var(--brn-blue) !important;
	font-family: var(--brn-font-display);
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 600;
}

#footer .brn-contact-card .widget {
	margin: 0;
	padding: 0;
}

#footer .brn-contact-card p,
#footer .brn-contact-card li {
	color: var(--brn-ink);
}

#footer .brn-contact-card a,
#footer .brn-contact-card a > * {
	color: var(--brn-blue);
}

#footer .brn-contact-card .wpcf7-form p {
	margin: 0 0 14px;
}

#footer .brn-contact-card input[type="text"],
#footer .brn-contact-card input[type="email"],
#footer .brn-contact-card textarea {
	width: 100%;
	border-color: var(--brn-line);
	background-color: var(--brn-surface-sky);
}

#footer .brn-contact-card textarea {
	height: 150px;
	resize: vertical;
}

#footer .brn-contact-column--details {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

#footer .brn-contact-column--details .widget {
	margin: 0;
	padding: 0;
}

#footer .brn-contact-column--details .widget_text {
	padding: clamp(20px, 2.4vw, 28px);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--brn-radius-large);
	background-color: rgba(255, 255, 255, 0.08);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

#footer .brn-contact-list {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#footer .brn-contact-list__item {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 0 0 0 62px;
	border: 0;
	list-style: none;
}

#footer .brn-contact-list__item::before,
#footer .brn-contact-list__item::after {
	content: '';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

#footer .brn-contact-list__item::before {
	left: 0;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: var(--brn-sun);
}

#footer .brn-contact-list__item::after {
	left: 13px;
	width: 20px;
	height: 20px;
	background-color: var(--brn-blue-night);
	-webkit-mask: var(--brn-contact-icon) center / contain no-repeat;
	mask: var(--brn-contact-icon) center / contain no-repeat;
}

#footer .brn-contact-list__item--address {
	--brn-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

#footer .brn-contact-list__item--phone {
	--brn-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E");
}

#footer .brn-contact-list__item--email {
	--brn-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4.2-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}

#footer .brn-contact-list__label {
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

#footer .brn-contact-list__value {
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	overflow-wrap: anywhere;
}

#footer a.brn-contact-list__value:hover {
	color: var(--brn-sun);
}

#footer .social-icons a,
#footer .social-icons li a {
	border-radius: 14px;
}

#footer .brn-contact-column--details .widget_media_image {
	display: flex;
	flex: 1 1 auto;
	min-height: 220px;
}

#footer .brn-footer-map {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	margin: 0;
	overflow: hidden;
	border-radius: var(--brn-radius-large);
	box-shadow: var(--brn-shadow-deep);
}

#footer .brn-footer-map > a {
	display: block;
	flex: 1 1 auto;
}

#footer .brn-footer-map img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 220px;
	border-radius: 0;
	object-fit: cover;
	object-position: 48% 42%;
	transition: transform 0.4s ease;
}

#footer .brn-footer-map:hover img {
	transform: scale(1.03);
}

#footer .brn-footer-map figcaption {
	position: absolute;
	bottom: 16px;
	left: 16px;
	margin: 0;
}

#footer .brn-footer-map figcaption a {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	border-radius: var(--brn-radius-pill);
	background-color: var(--brn-sun);
	color: var(--brn-ink) !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--brn-shadow-strong);
	transition: background-color 0.2s ease;
}

#footer .brn-footer-map figcaption a:hover {
	background-color: #fff;
}

.logo-in-footer {
	background-color: var(--brn-blue-night) !important;
}

.logo-in-footer #logo a,
.logo-in-footer h1 a,
.logo-in-footer a {
	color: var(--brn-sun) !important;
	font-family: var(--brn-font-display);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.logo-in-footer h1,
.logo-in-footer h1 a {
	font-size: clamp(40px, 10vw, 100px);
	line-height: 1;
}

#footer .bottom-footer {
	border: 0;
	background-color: var(--brn-blue-night);
}

#footer .bottom-footer .copyright {
	color: rgba(255, 255, 255, 0.72) !important;
	font-size: 13px;
}

/* ---------- Modals: Easy Modal writes its theme as inline styles ---------- */

#emodal-overlay {
	background-color: rgba(16, 44, 97, 0.55) !important;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.emodal {
	position: fixed !important;
	top: 50% !important;
	right: auto !important;
	bottom: auto !important;
	left: 50% !important;
	width: min(640px, calc(100% - 32px)) !important;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: 0 !important;
	padding: clamp(22px, 4vw, 40px) !important;
	overflow-y: auto;
	border: 0 !important;
	border-radius: var(--brn-radius-large) !important;
	background-color: var(--brn-surface) !important;
	box-shadow: var(--brn-shadow-deep) !important;
	color: var(--brn-ink);
	transform: translate(-50%, -50%);
	overscroll-behavior: contain;
}

.emodal .emodal-title {
	position: relative;
	margin: 0 52px 22px 0 !important;
	padding: 0 0 calc(var(--brn-ornament-height) + 14px) !important;
	background: none !important;
	color: var(--brn-blue) !important;
	font-family: var(--brn-font-display) !important;
	font-size: clamp(22px, 3vw, 30px) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: left !important;
	text-shadow: none !important;
}

.emodal .emodal-title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: calc(var(--brn-ornament-tile-width) * 3);
	height: var(--brn-ornament-height);
	background: var(--brn-ornament) repeat-x 0 50% / auto var(--brn-ornament-height);
}

.emodal .emodal-close {
	position: absolute !important;
	top: clamp(14px, 2.4vw, 22px) !important;
	right: clamp(14px, 2.4vw, 22px) !important;
	bottom: auto !important;
	left: auto !important;
	width: 44px;
	height: 44px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background-color: var(--brn-surface-sky) !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	text-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.emodal .emodal-close::before,
.emodal .emodal-close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2.5px;
	border-radius: 2px;
	background-color: var(--brn-blue);
}

.emodal .emodal-close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.emodal .emodal-close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.emodal .emodal-close:hover,
.emodal .emodal-close:focus-visible {
	background-color: var(--brn-sun) !important;
	transform: rotate(90deg);
}

.emodal .emodal-content,
.emodal .emodal-content p {
	color: var(--brn-ink) !important;
	font-family: var(--brn-font-text) !important;
}

.emodal .wpcf7-form p {
	margin: 0 0 14px;
}

.emodal input[type="text"],
.emodal input[type="email"],
.emodal textarea {
	width: 100%;
	border-color: var(--brn-line);
	background-color: var(--brn-surface-sky);
}

.emodal textarea {
	height: 150px;
	resize: vertical;
}

@media only screen and (max-width: 600px) {
	.emodal {
		width: calc(100% - 20px) !important;
		border-radius: 22px !important;
	}

	.emodal .emodal-title {
		font-size: 21px !important;
	}
}

/* ---------- Form messages ---------- */

.wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--brn-error-ink);
	font-size: 14px;
	font-weight: 600;
}

.wpcf7-form-control.wpcf7-not-valid {
	border-color: var(--brn-coral) !important;
	box-shadow: 0 0 0 4px rgba(255, 138, 101, 0.18);
}

.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border: 0;
	border-radius: var(--brn-radius-small);
	background-color: var(--brn-surface-sky);
	color: var(--brn-ink);
	font-size: 15px;
	font-weight: 600;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	background-color: var(--brn-error-surface);
	color: var(--brn-error-ink);
}

.wpcf7 form.sent .wpcf7-response-output {
	background-color: var(--brn-success-surface);
	color: var(--brn-success-ink);
}

/* ---------- Phones ---------- */

@media only screen and (max-width: 767px) {
	#content .section:not(.padding-top-off) {
		padding-top: 36px;
	}

	#content .section:not(.padding-bottom-off) {
		padding-bottom: 36px;
	}

	#content .section.padding-bottom-off {
		padding-top: 28px;
	}

	.entry.main-entry {
		padding: 20px;
	}

	#main p,
	#main li,
	.entry-body p,
	.entry-body li {
		font-size: 16.5px;
	}

	#main [style*="justify"],
	#main [align="justify"],
	#main .has-text-align-justify {
		text-align: left !important;
	}
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
}
