/* BEGIN: Site styles */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(../montserrat-0.ttf) format('truetype');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(../montserrat-1.ttf) format('truetype');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(../montserrat-2.ttf) format('truetype');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(../montserrat-3.ttf) format('truetype');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url(../montserrat-4.ttf) format('truetype');
}

/* Overrides for the spkrk.ru templates. Load after Bootstrap 5.3.8.
!important is used only where Bootstrap utility classes require it. */
:root {
	--site-navy: #001642;
	--site-blue: #001642;
	--site-red: #fd1b0e;
	--bs-body-font-family: "Montserrat", Arial, sans-serif;
	--bs-body-color: #767676;
	--bs-primary-text-emphasis: var(--site-blue);
	--bs-link-color: var(--site-blue);
	--bs-link-color-rgb: 0, 22, 66;
	--bs-link-hover-color: var(--site-red);
	--bs-link-hover-color-rgb: 253, 27, 14;
	--bs-secondary-color: #767676;
	--bs-warning-rgb: 253, 27, 14;
	--bs-dark-rgb: 0, 22, 66;
	--bs-light-rgb: 247, 250, 253;
	--bs-secondary-bg-subtle: #e8ecf4;
	--bs-border-radius: 10px;
	--bs-border-radius-lg: 10px;
}
body {
	position: relative;
	isolation: isolate;
	font-family: var(--bs-body-font-family);
}
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: url("../gerb.png") right top / auto no-repeat;
	opacity: .1;
}
h1, h2, h3, h4, h5, h6 {
	color: var(--site-blue);
}
.fw-bold {
	font-weight: 700 !important;
}
.text-body-secondary {
	color: #767676 !important;
}
.bg-dark h2 {
	color: inherit;
}
.shadow-sm {
	box-shadow: 0 5px 10px rgb(0 0 0 / 5%) !important;
}
.bg-white, .card {
	background-color: rgb(255 255 255 / 85%) !important;
}
.btn-warning {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--site-red);
	--bs-btn-border-color: var(--site-red);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #dc170c;
	--bs-btn-hover-border-color: #dc170c;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #c1140b;
	--bs-btn-active-border-color: #c1140b;
}
header {
	box-shadow: 0 2px 5px rgb(0 0 0 / 15%);
}
header > .container > .text-end {
	font-size: 14px;
}
header .link-light {
	color: #b6b8d1 !important;
}
header .form-control {
	min-height: 30px;
	padding: 4px 20px;
	font-size: 14px;
	font-weight: 600;
	background: #fafafa;
}
header form .btn {
	min-width: 126px;
	padding-top: 4px;
	padding-bottom: 4px;
	font-size: 14px;
}
header .rounded-circle {
	width: 30px;
	height: 30px;
	padding: 3px;
	font-size: 14px;
}
header .border-top {
	border-color: rgb(255 255 255 / 12%) !important;
}
header .nav-link {
	font-size: 12px;
	white-space: nowrap;
}
header .dropdown-toggle::after {
	opacity: .5;
}
header .btn-outline-light {
	font-size: 12px;
	font-weight: 700;
	color: #c8c9df;
	border-color: #b4b6d2;
	padding: 10px 24px;
}
header .btn-outline-light:hover {
	color: var(--site-navy);
	background: #fff;
}
.dropdown-menu {
	--bs-dropdown-bg: #fff;
	--bs-dropdown-color: #001642;
	--bs-dropdown-link-color: #001642;
	--bs-dropdown-link-hover-color: var(--site-red);
	--bs-dropdown-link-hover-bg: #f0f3f7;
	width: 290px;
	max-width: calc(100vw - 48px);
	box-shadow: 0 8px 24px #0002;
	font-size: 14px;
}
.dropdown-item {
	padding: 10px 18px;
}
#main > section:first-of-type > div > .bg-secondary-subtle {
	min-height: 138px;
	padding: 16px 14px !important;
	background-color: var(--site-blue) !important;
	color: #fff;
}
#main > section:first-of-type .h2 {
	font-size: 32px;
	font-weight: 800 !important;
	text-shadow: none;
}
#main > section:first-of-type .h2, #main > section:first-of-type .h3 {
	color: #fff;
	text-shadow: none;
}
#main > section:first-of-type .h3 {
	font-size: 30px;
	font-weight: 800 !important;
}
#main > section:first-of-type p {
	font-size: 14px;
	line-height: 16px !important;
}
#main > section:first-of-type .border-top {
	margin: 12px auto 10px !important;
}
#main > section:nth-of-type(2) {
	--bs-gutter-x: 20px;
	--bs-gutter-y: 20px;
}
#main > section:nth-of-type(2) .card {
	border-radius: 10px;
}
#main > section:nth-of-type(2) .card-body {
	min-height: 118px;
	padding: 15px 30px !important;
}
#main > section:nth-of-type(2) h2 {
	font-size: 16px;
	margin-bottom: 8px;
}
#main > section:nth-of-type(2) p {
	font-size: 12px;
	line-height: 18px;
}
#main > section:nth-of-type(2) span {
	font-size: 11px;
	letter-spacing: 1px;
}
#main > section:nth-of-type(2) a:hover h2, #main a.text-primary-emphasis:hover {
	color: var(--site-red) !important;
}
#newsCarousel {
	border-radius: 4px !important;
}
#newsCarousel .carousel-item > .bg-dark {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 32px 40px 44px !important;
	background: linear-gradient(transparent, rgb(0 22 66 / 92%)) !important;
}
#newsCarousel h2 {
	font-size: 18px;
	line-height: 1.5;
}
#newsCarousel .carousel-control-prev, #newsCarousel .carousel-control-next {
	width: 8%;
}
#newsCarousel .carousel-indicators button {
	width: 9px;
	height: 9px;
	border-radius: 50%;
}
#main > .row > aside > .d-flex > a {
	font-size: 16px;
}
#newsTitle, #useful {
	font-size: 24px;
}
section[aria-labelledby="newsTitle"] .ratio {
	--bs-aspect-ratio: 66.6667%;
}
section[aria-labelledby="newsTitle"] .card {
	border-radius: 4px;
}
section[aria-labelledby="newsTitle"] h3 {
	font-size: 16px;
}
section[aria-labelledby="newsTitle"] time {
	font-size: 12px;
}
section[aria-labelledby="useful"] a {
	border-color: #e7ebf1 !important;
	font-size: 12px;
}
main > h1:not(.visually-hidden) {
	font-size: 32px;
	line-height: 1.3;
	margin-bottom: 40px !important;
}
main article > .bg-white {
	color: #767676;
	padding: 26px 30px !important;
	line-height: 1.5 !important;
}
main article > .bg-white p {
	margin-bottom: 20px;
}
.list-group-item {
	background: rgb(255 255 255 / 85%);
	color: #001642;
	font-size: 14px;
}
.list-group-item[aria-current="page"] {
	border-width: 0 0 1px 3px !important;
	border-bottom-color: #e7ebf1 !important;
}
.list-group-item:hover, .list-group-item:focus-visible {
	color: var(--site-red) !important;
	background: #f1f4f8;
}
footer h2 {
	font-size: 16px !important;
	color: #fff;
}
footer .small {
	font-size: 12px;
	line-height: 1.7;
}
footer .text-white-50 {
	color: #b6b8d1 !important;
}
a:focus-visible, button:focus-visible {
	outline: 3px solid var(--site-red);
	outline-offset: 4px;
}
/* BEGIN: Blue panels hover */
#main > section:first-of-type > div > .bg-secondary-subtle,
#main > .row > aside > .d-flex > a.bg-dark {
	transition: background-color 180ms ease;
}
#main > section:first-of-type > div > .bg-secondary-subtle:hover,
#main > .row > aside > .d-flex > a.bg-dark:hover,
#main > .row > aside > .d-flex > a.bg-dark:focus-visible {
	background-color: #102b55 !important;
}
@media (prefers-reduced-motion: reduce) {
	#main > section:first-of-type > div > .bg-secondary-subtle,
	#main > .row > aside > .d-flex > a.bg-dark {
		transition: none;
	}
}
/* END: Blue panels hover */

@media (min-width: 1200px) {
	.container {
		max-width: 1170px;
	}
	header > .container {
		max-width: 1150px;
	}
	header > .container > .row {
		padding-bottom: 20px !important;
	}
	header .navbar {
		min-height: 68px;
	}
	header .nav-link {
		padding-left: 0 !important;
		padding-right: 12px !important;
	}
	#main > .row > .col-lg-8 {
		width: 68%;
	}
	#main > .row > aside.col-lg-4 {
		width: 32%;
	}
	#main > .row > article.col-xl-9 {
		width: 75%;
	}
	#main > .row > aside.col-xl-3 {
		width: 25%;
	}
}
@media (max-width: 1199.98px) {
	header .navbar-nav {
		padding-top: 15px;
	}
	header .nav-link {
		padding: 10px 0;
		white-space: normal;
	}
	#main > section:nth-of-type(2) .card-body {
		padding: 18px !important;
	}
}
@media (max-width: 767.98px) {
	body::before {
		background-size: auto 100vh;
	}
	header > .container > .row {
		--bs-gutter-y: 20px;
	}
	header form .btn {
		min-width: auto;
		padding-right: 18px !important;
		padding-left: 18px !important;
	}
	#main {
		padding-top: 24px !important;
	}
	main > h1:not(.visually-hidden) {
		font-size: 26px;
		margin-bottom: 24px !important;
	}
	main article > .bg-white {
		padding: 22px !important;
	}
	#newsCarousel .carousel-item > .bg-dark {
		position: static;
		padding: 20px 28px 36px !important;
		background: var(--site-navy) !important;
	}
	#newsCarousel h2 {
		font-size: 16px;
	}
}
/* END: Site styles */
