/* Reset */
*,
*::before,
*::after {padding: 0; margin: 0; border: 0; -webkit-box-sizing: border-box; box-sizing: border-box;}
a {text-decoration: none; color: inherit;}
ul, ol, li {list-style: none;}
img {vertical-align: top;}
h1, h2, h3, h4, h5, h6 {font-size: inherit; font-weight: inherit;}
html, body {line-height: 1;}
textarea, button, input, select {font-family: inherit; font-weight: inherit; font-size: inherit; color: inherit; outline: none;}
button {cursor: pointer; background-color: inherit;}

/* Variables */
:root {
	--body-color: #fafafa;
	--black-color: #131313;
	--dark-color: #535353;
	--grey-color: #838383;
	
	--white-color: #ffffff;
	--light-color: #fafafa;
	--light-color-2: #d3d3d3;

	--accent-color: #163853;
	--accent-color-hover: #132f47;

	--border-radius-20: 20px;
	--border-radius-16: 16px;
	--border-radius-8: 8px;
}

/*-------------START---------------*/
/*---------------------------------*/

::-webkit-input-placeholder {
	opacity: 1;
	color: var(--grey-color);
}
::-moz-placeholder {
	opacity: 1;
	color: var(--grey-color);
}
:-ms-input-placeholder {
	opacity: 1;
	color: var(--grey-color);
}
::-ms-input-placeholder {
	opacity: 1;
	color: var(--grey-color);
}
::placeholder {
	opacity: 1;
	color: var(--grey-color);
}
::selection {
	background-color: var(--accent-color-hover);
	color: var(--white-color);
}

body {
	background: var(--body-color);
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 400;
	font-style: normal;
	color: var(--dark-color);
	scroll-behavior: smooth;
	min-width: 360px;
	overflow-x: hidden;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
	display: block;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	line-height: 1.1;
	text-transform: capitalize;
	color: var(--accent-color);
	margin: 0;
}

h1, .h1 {
	font-size: 38px;
}

h2, .h2 {
	font-size: 34px;
}

h3, .h3 {
	font-size: 30px;
}

h4, .h4 {
	font-size: 26px;
}

h5, .h5, h6, .h6 {
	font-size: 22px;
}

h1 span, .h1 span,
h2 span, .h2 span,
h3 span, .h3 span,
h4 span, .h4 span {
	display: inline-block;
}

b, strong { font-weight: 600; }
i, em { font-style: italic; }

a {
	color: var(--accent-color);
	transition: all 0.3s ease;
}

a:hover {
	color: var(--accent-color-hover);
}

a:active {
	color: inherit;
}

a:focus-visible {
	outline: none;
	text-decoration: underline;
	text-decoration-color: var(--accent-color);
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

img,
video {
	line-height: 0;
	max-width: 100%;
	height: auto;
}

p:not(:last-child) {
	margin-bottom: 10px;
}

hr {
	border: none;
	border-top: 1px solid var(--mid-color);
	text-align: center;
	height: 1px;
	margin: 20px auto;
	max-width: 100%;
}

blockquote {
	border-left: 4px solid var(--accent-color);
	margin: 0 0 10px;
	padding: 6px 10px;
	font-style: normal;
}

.hidden {
	display: none;
}

@media only screen and (max-width: 767.98px) {
	/*body {font-size: 18px;}
	h1, .h1 {font-size: 34px;}
	h2, .h2 {font-size: 30px;}
	h3, .h3 {font-size: 26px;}
	h4, .h4 {font-size: 22px;}*/
}

/*------------------------------------*/

.wrapper {
	background-color: var(--body-bgcolor);
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: clip;
}

[class*="__container"] {
	position: relative;
	max-width: 840px;
	width: 100%;
	padding-left: 20px;
	padding-right: 20px;
	margin: 0 auto;
}

.fancybox__container {
	position: fixed;
	max-width: inherit;
	padding-left: inherit;
	padding-right: inherit;
	margin: inherit;
	backdrop-filter: blur(4px);
	--fancybox-bg: rgba(12, 12, 12, 0.8);
}

.sect {
	position: relative;
	overflow: hidden;
}

.ukraine-flag {
	margin: 20px 0 0;
	height: 16px;
	border-radius: var(--border-radius-16);
	background: linear-gradient(to bottom,#0057B7 0%,#0057B7 50%,#FFD700 50%,#FFD700 100%);
	overflow: hidden;
}

.hero-sect {
	margin-top: 80px;
}

.hero__inner {
	padding: 30px;
	border-radius: var(--border-radius-16);
	border: 3px dashed var(--light-color-2);
	display: flex;
	gap: 30px;
	overflow: hidden;
}

.hero__media {
	flex: 0 0 220px;
}

.hero__content {
	flex: 0 1 100%;
	align-self: center;
}

.hero__photo {
	margin: 0 auto;
	width: 220px;
	height: 280px;
	background-color: var(--light-color-2);
	border-radius: var(--border-radius-16);
	overflow: hidden;
}

.hero__photo > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.hero__name {
	font-size: 48px;
}

.hero__subtitle {
	margin-top: 2px;
	font-size: 28px;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--dark-color);
}

.hero__contacts {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.hero__contacts li {
	position: relative;
	display: flex;
	gap: 10px;
	font-size: 22px;
	line-height: 1.2;
	color: var(--dark-color);
}

.hero__contacts li > span {
	margin-top: 3px;
	display: inline-block;
	font-size: 24px;
	line-height: 1;
	color: var(--dark-color);
}

.hero__contacts li a {
	color: var(--dark-color);
}

.hero__contacts li a:hover {
	color: var(--dark-color);
	text-decoration: underline;
}

.portfolio-sect {
	padding: 60px 0 80px;
}

.portfolio__cards {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.portfolio__card {
	flex: 0 1 calc(100% / 2 - 12px);
	position: relative;
	aspect-ratio: 2 / 1;
	background-color: var(--white-color);
	border-radius: var(--border-radius-16);
	box-shadow: 0 0 12px 0 var(--light-color-2);
	transition: all 0.3s ease;
	overflow: hidden;
}

.portfolio__card-logo {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12% 15%;
}

.portfolio__card-logo > img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
}

.portfolio__card-link {
	position: absolute;
	background-color: var(--accent-color);
	width: 40px;
	height: 40px;
	bottom: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white-color);
	border-radius: var(--border-radius-16) 0 0 0;
	z-index: 1;
}

.portfolio__card-link > span {
	font-size: 16px;
}

.portfolio__card-link:hover {
	color: var(--light-color-2);
}

.portfolio__text {
	margin-top: 30px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 20px;
}

.portfolio__text p {
	margin: 0;
}

.portfolio__text span {
	display: inline-block;
}

@media only screen and (max-width: 679.98px) {
	.hero__inner {
		padding: 20px 20px;
		gap: 20px;
	}
	.hero__name {
		font-size: 42px;
	}
	.hero__subtitle {
		font-size: 26px;
	}
}

@media only screen and (max-width: 599.98px) {
	.hero__inner {
		flex-direction: column;
	}
	.hero__media,
	.hero__content {
		flex: 1 1 auto;
		width: 100%;
		align-self: inherit;
	}
	.hero__photo {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}
	.portfolio__cards {
		gap: 12px;
	}
	.portfolio__card {
		flex: 0 1 calc(100% / 2 - 6px);
	}
	.portfolio__card-link {
		width: 32px;
		height: 32px;
	}
	.portfolio__card-link > span {
		font-size: 12px;
	}
}