html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
ol {
  list-style-type: decimal;
  margin-left: 1.5em;
  padding-left: 0;
}
hr {
  border: none;
  height: 1px;
  background-color: #ccc;
  margin: 20px 0;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
 *{
	padding: 0;
	margin: 0;
	border: 0;
}
*,*:before,*:after{
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}
:focus,:active{outline: none;}
a:focus,a:active{outline: none;}
nav,footer,header,aside{display: block;}
html,body{
	height: 100%;
	width: 100%;
	font-size: 100%;
	line-height: 1;
	font-size: 16px;
	-ms-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
}
input,button,textarea{font-family:inherit;}
input::-ms-clear{display: none;}
button{cursor: pointer;}
button::-moz-focus-inner {padding:0;border:0;}
a, a:visited{text-decoration: none;}
a:hover{text-decoration: none;}
ul li{list-style: none;}
img{vertical-align: top;}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight: 400;}
.page-header, .icons {
	display: none;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('/fonts/OpenSans-Italic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
body {
	font-family: 'Open Sans', sans-serif;
	font-weight: 500;
	line-height: 1.4;
	color: #333;
	background-color: rgba(235, 237, 244, 1);
}
@media (prefers-color-scheme: dark) {
	body {
		color: #ddd;
		background-color: #1D2733;
	}
	#burger svg rect { fill: #ddd; }
	.fil1 { fill: #9b9b9b !important; }
	.fil0 { fill: #b2b2b2 !important; }
	.fil2 { fill: white !important; }
	#header { background-color: #163B60 !important; }
	#burger { background-color: #163B60 !important; }
	#footer { background-color: #163B60 !important; }
	#partners-images svg path { fill: #A8A8A8; }
	.block-item:hover {
		box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.3),  
					4px 4px 8px rgba(0, 0, 0, 0.4);
	}
	.item1 { background-color: rgba(48, 90, 76, 1) !important;; }
	.item2 { background-color: rgba(90, 65, 48, 1) !important;; }
	.item3 { background-color: rgba(90, 81, 48, 1) !important;; }
	.item4 { background-color: rgba(90, 48, 65, 1) !important;; }
	.item5 { background-color: rgba(90, 65, 48, 1) !important;; }
	.item6 { background-color: rgba(48, 90, 76, 1) !important;; }
	.item7 { background-color: rgba(90, 81, 48, 1) !important;; }
	.item8 { background-color: rgba(90, 48, 65, 1) !important;; }
	.item1:hover { background-color: rgba(48, 90, 76, 0.7); }
	.item2:hover { background-color: rgba(90, 65, 48, 0.7); }
	.item3:hover { background-color: rgba(90, 81, 48, 0.7); }
	.item4:hover { background-color: rgba(90, 48, 65, 0.7); }
	.item5:hover { background-color: rgba(90, 65, 48, 0.7); }
	.item6:hover { background-color: rgba(48, 90, 76, 0.7); }
	.item7:hover { background-color: rgba(90, 81, 48, 0.7); }
	.item8:hover { background-color: rgba(90, 48, 65, 0.7); }
	.block__column .clickable-box { color: #DDD !important; }
	a {
		color: #3997d2;
	}
}
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
	font-weight: 700;
	line-height: 1.2;
}
h1 { font-size: calc(28px + (40 - 28) * ((100vw - 320px) / (1200 - 320))); }
h2 { font-size: calc(24px + (34 - 24) * ((100vw - 320px) / (1200 - 320))); }
h3 { font-size: calc(20px + (30 - 20) * ((100vw - 320px) / (1200 - 320))); }
h4 { font-size: calc(16px + (22 - 16) * ((100vw - 320px) / (1200 - 320))); }
p, li, a, strong em {
    font-family: 'Open Sans', sans-serif;
	font-weight: 500;
	line-height: 1.4;
	font-size: calc(14px + (20 - 14) * ((100vw - 320px) / (1200 - 320)));
}
/* Шрифти блоку Main */
main h1 { margin: 2.3em 0 0.35em; }
main h4 { margin-bottom: 0.5em; }
main p { margin-bottom: 0.875em; }
main b { font-weight: 700; }
main ul, ol {
  margin: 0 0 1em 3em;
  padding: 0;
}
main ul li { list-style-type: disc; }
main li { margin-bottom: 0.2em; }
main a{
	font-weight: 600;
	text-decoration: underline;
}
strong {
  font-weight: bold;
}
/* Масштабування карти Контакти */
#iframe {
	width: calc(280px + (600 - 280) * ((100vw - 320px) / (1200 - 320)));
	height: calc(210px + (450 - 210) * ((100vw - 320px) / (1200 - 320)));
}
/* Обмежувальний блок */
#container {
	min-width: 320px;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 calc(15px + (20 - 15) * ((100vw - 320px) / (1200 - 320)));
}
/* Блок Header */
#header {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1200px;
	height: calc(55px + (90 - 55) * ((100vw - 320px) / (1200 - 320)));
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: rgba(168, 206, 247, 1);
	z-index: 10;
}
/* Блок Лого */
#logo {
	display: flex;
	align-items: center;
	padding-left: calc(20px + (40 - 20) * ((100vw - 320px) / (1200 - 320)));
}
#logo svg {
	height: calc(44px + (72 - 44) * ((100vw - 320px) / (1200 - 320)));
	width: auto; 
}
/* Блок Меню */
#nav {
	display: flex;
	height: 100%;
}
#nav ul {
	display: flex;
	list-style: none;
	align-items: flex-end;
}
#nav ul li {
	display: flex;
    align-items: center;
}
#nav ul li a {
	text-decoration: none;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	line-height: 1.2;
	color: #1А1А1А;
	padding: 10px 20px;
	transition: background 0.3s, color 0.3s;
}
#nav ul li a:hover {
	background: #007BFF;
	color: #fff;
}
#nav ul li a:active {
	background: #0056b3;
	color: #fff;
}
#burger {
    display: none;
    width: 40px;
    height: 40px;
    background-color: rgba(168, 206, 247, 1);
    box-sizing: border-box;
	margin-right: 24px;
}
#burger svg {
    width: 100%;
    height: 100%;
    display: block;
}	
#burger {
	display: none;
	cursor: pointer;
    background-color: rgba(168, 206, 247, 1);
}
@media (max-width: 800px) {
	#nav {
		align-items: center;
		flex-direction: column;
	}
	#nav ul {
		display: none;
		flex-direction: column;
		position: absolute;
		top: calc(55px + (90 - 55) * ((100vw - 320px) / (1200 - 320)));
		right: 8px;
		background-color: rgba(202, 222, 246, 1);
		box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
		width: 160px;
		padding: 10px 0;
		align-items: center;
	}
	#nav ul li {
		width: 100%;
	}
	#nav ul li a {
		display: block;
		width: 100%;
	}
	#nav ul.show {
		display: flex;
	}
	#burger {
		display: flex;
		align-items: center;
		height: 100%;
	}
}
@media (min-width: 801px) {
	#nav ul li a {
		font-size: 16px;
	}
}
@media (min-width: 1025px) {
	#nav ul li a {
		font-size: 18px;
	}
}
@media (min-width: 1200px) {
	#nav ul li a {
		font-size: 20px;
	}
}
/* Розміщення блоку Слоган */
.slogan {
	text-align: center;
	margin-bottom: calc(12px + (17 - 12) * ((100vw - 320px) / (1200 - 320)));
}
.slogan h2 {
	margin-top: calc(63px + (105 - 63) * ((100vw - 320px) / (1200 - 320)));
	margin-bottom: calc(3px + (5 - 3) * ((100vw - 320px) / (1200 - 320)));
}
.slogan h4 {
	margin-bottom: calc(17px + (20 - 17) * ((100vw - 320px) / (1200 - 320)));
}
.slogan h4 span {
	font-weight: 900;
}
/* Розміщення блоків Послуги/Страховки */
.block__row {
    display: flex;
    flex-wrap: wrap;
}
.block__column {
    flex: 1 1 calc(50% - 15px);
	margin-right: 30px;
	margin-bottom: 30px;
}
@media (max-width: 576px) {
    .block__row {
        display: flex;
        flex-direction: column;
    }
    .block__column {
        width: 100%;
		margin-bottom: 15px;
    }
}
.block__column:nth-child(2n) {
    margin-right: 0;
}
.clickable-box{
	display: block;
}
.block__column .clickable-box {
    text-decoration: none !important;
	color: #333;
}
.block-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    padding: 25px 30px 30px;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.block-item h3{
	margin: 0 0 calc(7px + (10 - 7) * ((100vw - 320px) / (1200 - 320)));		
}
/* Блок кольорів блоку Послуг/Стразрвки */
.block-item:hover {
	box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.3),  
                4px 4px 8px rgba(0, 0, 0, 0.4);
}
.item1 { background-color: rgba(132, 172, 161, 0.7); }
.item2 { background-color: rgba(207, 139, 85, 0.7); }
.item3 { background-color: rgba(196, 158, 74, 0.7); }
.item4 { background-color: rgba(181, 117, 127, 0.7); }
.item5 { background-color: rgba(223, 159, 67, 0.7); }
.item6 { background-color: rgba(32, 187, 101, 0.7); }
.item7 { background-color: rgba(140, 187, 182, 0.7); }
.item8 { background-color: rgba(225, 115, 105, 0.7); }
.item1:hover { background-color: rgba(132, 172, 161, 0.4); }
.item2:hover { background-color: rgba(207, 139, 85, 0.4); }
.item3:hover { background-color: rgba(196, 158, 74, 0.4); }
.item4:hover { background-color: rgba(181, 117, 127, 0.4); }
.item5:hover { background-color: rgba(223, 159, 677, 0.4); }
.item6:hover { background-color: rgba(32, 187, 101, 0.4); }
.item7:hover { background-color: rgba(140, 187, 189, 0.4); }
.item8:hover { background-color: rgba(225, 115, 105, 0.4); }
/* Стиль пропорції IMG */
figure img {
    max-width: 100%;
    height: auto;
	padding: 20px;
}
/* Блок Партнери */
#partners {
	width: calc(320px + (640 - 320) * ((100vw - 320px) / (1200 - 320)));
	max-width: 1200px;
	margin-left: auto;
	margin-right: 20px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
@media (max-width: 500px) {
	#partners {
		width: 290px;
	}
}
#partners-text {
	align-self: flex-start; /* Вирівнює текст за першим зображенням */
	margin-bottom: 7px;
	font-weight: 700;
}
#partners-images {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 20px;
	width: 100%;
}
#partners-images img {
	height: auto;
	object-fit: contain;
}
#partners-images svg {
	height: auto;
	object-fit: contain;
}
#img1 { width: 120px; }
#img2 { width: 156px; }
#img3 { width: 144px; }
@media (max-width: 750px) {
	#img1 { width: calc(120px * 0.58); }
	#img2 { width: calc(156px * 0.58); }
	#img3 { width: calc(144px * 0.58); }
}
/* Блок Footer */
#footer {
	display: flex;
	justify-content: center; 
	align-items: center;
	background-color: rgba(168, 206, 247, 1);
	height: calc(42px + (63 - 42) * ((100vw - 320px) / (1200 - 320)));
}
#footer span{
	font-size: calc(12px + (15 - 12) * ((100vw - 320px) / (1200 - 320)));
	line-height: 1.4;
}
/* Блок фіксації розмірів більше 1200px */
@media (min-width: 1200px) {
	h1{ font-size: 40px; }
	h2{ font-size: 34px; }
	h3{ font-size: 30px; }
	h4{ font-size: 22px; }
    p, li { font-size: 20px; }
	.container { padding: 0 20px; }
    #header { height: 90px; }
	#iframe {
		width: 600px;
		height: 450px;
	}
	#logo { padding-left: 40px; }
	#logo img { height: 72px; }
    .slogan { margin-bottom: 17px; }
	.slogan h2 {
		margin-top: 105px;
		margin-bottom: 5px;
	}
	.slogan h4 { margin-bottom: 20px; }
	#partners { width: 640px; }
    #footer { height: 63px; }
	#footer span { font-size: 15px; }
}