/* latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
  transition: 1s;
	margin: 0;
	padding: 0;
}

html {
  scroll-behavior: smooth; 
}

.body {
	background-color: #191a1b;
	font-family: 'Roboto', sans-serif;
	max-width: 1000px;
	margin: 0 auto;
	min-height: 100vh;
}

.header-block {
	background-color: #2d2f31;
	position: sticky;
	top: 0;
	z-index: 3;
}

.header__nav-list {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
	padding: 15px;
}

.header__nav-list-item {
	list-style-type: none;
}

.header__nav-list-link {
	text-decoration: none;
	color: #fefefe;
	padding: 0 20px;
	display: inline-block;
	text-decoration: none;
	letter-spacing: 2px;
	text-transform: uppercase;
	position: relative;
	transition: all 0.4s ease;
}

.header__nav-list-link:hover {
	color: rgba(117, 95, 241, 0.8);
}

.header__nav-list-link::after { 
 	content: "";
 	position: absolute;
 	height: 2px;
 	background-color: rgba(117, 95, 241, 0.8);
 	width: 0;
 	left: 50%;
 	bottom: -7px;
 	transform: translateX(-50%);
 	transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) all;
}

.header__nav-list-link:hover::after { 
	width: 100%; 
}

.containers {
	display: flex;
	width: 100%;
}

.container__left {
	width: 27%;
	background-color: #2d2f31;
}

.container__right {
	width: 73%;
	background-color: #ffffff;
	padding: 0 15px;
}

.section {
	padding: 5px 0;
}

.avatar {
	width: 100%;
	aspect-ratio: 1 / 1;
}

.block-name {
	margin: 0;
	display: flex;
	justify-content: center;
	padding: 15px 0;
}

.block-main-for-text {
	border: 2px solid rgba(22, 13, 79, 0.8);
	width: max-content;
	padding: 7px 45px;
	border-radius: 1em;
	position: relative;
}

.block-main-for-text:hover {
	border: 2px solid rgb(117, 95, 241);
} 

.block-main-for-text:hover .main-title__skill{
	color: rgb(117, 95, 241);
}

.block-main__name-title {
	margin: 0;
	font-size: 50px;
	color: #2d2f31;
	position: relative;
	z-index: 2;
}

.avatar:hover {
	transition: 1s;
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
  filter: gray;
  z-index: 1;
}

.contact-block__title, 
.education-block__title, 
.languages-block__title {
	color: #fefefe;
	font-size: 14px;
	text-align: right;
	padding: 2px 7px 2px;
	text-transform: uppercase;
	background-color: rgba(22, 13, 79, 0.8);
}

.contact-block__title:hover, 
.education-block__title:hover, 
.languages-block__title:hover {
	transition: 2s;
	padding-right: 12px;
	-webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
  filter: gray;
}

.block-summary__title, 
.block-experience__title, 
.block-code__title,
.block-skills__title, 
.block-projects__title {
	color: #fefefe;
	font-size: 14px;
	text-align: right;
	line-height: 1.3;
	padding: 5px 10px 5px;
	text-transform: uppercase;
	background-color: rgba(22, 13, 79, 0.8);
}

.block-summary__title:hover, 
.block-experience__title:hover, 
.block-code__title:hover,
.block-skills__title:hover, 
.block-projects__title:hover {
	transition: 2s;
	padding-right: 12px;
	-webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: grayscale(100%);
  filter: gray; 
}

.list {
	display: flex;
	flex-direction: column;
	padding: 5px 28px 0;
	row-gap: 5px;
	margin: 8px 0;
}

.contact-block__menu-list-item {
	list-style-type: none;
}

.contact-block__menu-list-link {
	text-decoration: none;
	color: #fefefe;
	font-size: 18px;
	line-height: 1.3;
	position: relative;
}

.contact-block__menu-list-link:hover {
	filter: brightness(0) saturate(100%) invert(35%) sepia(63%) saturate(2881%) hue-rotate(233deg) brightness(98%) contrast(92%);
}

.contact-block__menu-list-link::before {
	content: '';
	position: absolute;
	left: 0; 
	bottom: -2px;
	width: 0;
	height: 2px;
	background-color: rgb(117, 95, 241);
}

.contact-block__menu-list-link:hover:before {
	width: 100%;
}

.contact-block__menu-list-link::before {
	transition: width 0.35s;
}

.education-block__menu-list-item, 
.languages-block__menu-list-item {
	list-style-type: none;
}

.header__nav-list-text,
.languages-block__menu-list-item {
	color: #fefefe;
	font-size: 18px;
}

.header__nav {
	display: flex;
	width: 100%;
	align-content: center;
	align-items: center;
	font-size: 14px;
	text-transform: uppercase;
}

.main-title__skill {
	width: 250px;
	color: rgba(22, 13, 79, 1);
	font-size: 20px;
	text-align: center;
	background-color: #ffffff;
	position: absolute;
	bottom: -0.6em;
	left: 2.7em;;
	text-transform: lowercase;
}

.main-title__skill:hover {
	color: rgb(117, 95, 241);
}

.block-summary__text, 
.block-experience__text, 
.block-skills__menu-list-text {
	padding: 10px 1px 0;
	text-indent: 10px;
	line-height: 1.5;
	font-size: 18px;
	text-align: center;
}

.block-code__example {
	font-size: 14px;
	overflow: auto;
	padding: 10px 20px;
	width: auto;
	max-height: 600px;
}

.footer {
	background: #2d2f31;
	padding: 7px 20px 5px;
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	color: #fefefe;
	padding: 5px 52px;
}

.block-footer__img {
  height: 40px;
	width: 40px;
  opacity: 0.7;
}

.rs-img {
	width: 108px;
}

.footer-year__title {
	text-align: center;
	color: #fefefe;
	opacity: 0.7;
	cursor: default;
}

.footer-year {
	display: flex;
	justify-content: space-between;
	align-items: center;
	column-gap: 20px;
}

.footer-year__title:hover,
.block-footer__img:hover {
	transition: 1s;
	transform: scale(1.1);
	opacity: 1;
}

.block-skills__menu-list {
	margin: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 5px;
	padding: 10px 0 0;
}

.block-skills__menu-list-item {
	list-style-type: none; 
	display: flex; 
	margin: 0 0 3px;
	padding: 0 5px;
}

.block-skills__menu-list-text {
	margin: 0;
	padding-top: 2px;
	cursor: default;
}

.block-skills__menu-list-text:hover {
	transform: scale(1.1);
}

.block-skills__menu-list__icons:hover {
	transform: rotate(360deg);
}

.block-skills__menu-list__icons {
	height: 30px;
	width: 30px;
}

.block-projects__menu-list__icons {
	padding: 0;
	filter: grayscale(100%);
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.block-experience__title,
.block-skills__title,
.block-projects__title,
.block-code__title,
.block-summary__title {
	scroll-margin-top: 50px;
}

.block-projects__menu-list__icons:hover {
	filter: grayscale(0);
	z-index: 2;
}

.button-top {
	display: block;
	padding: 15px;
	position: fixed; 
	bottom: 15px; 
	right: 15px;
	z-index: 2;
	border-radius: 2px;
	background-color: #2f3239;
	color: #ffffff;
	text-decoration: none;
	font-family: 'Roboto', sans-serif;
	font-size: 0.9em;
	display: none;
}

.button-top:hover {
	background-color: rgb(117, 95, 241);
	transition: 1s;
}

.block-main__name-title,
.main-title__skill,
.contact-block__title, 
.education-block__title, 
.languages-block__title,
.block-summary__title, 
.block-experience__title, 
.block-code__title,
.block-skills__title, 
.block-projects__title {
	cursor: default;
}

.block-projects__container {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
}

.block-projects-list {
	display: flex;
	justify-content: center;
	gap: 2px;
}

.list-big {
	width: 70%;
	height: auto;
}

.list-small {
	width: 30%;	
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.list-link {
	height: 50%;
}

.block-projects-list:nth-child(2n+1) .list-big{
	order: 2;
}

.burger-menu {
	display: none;
	list-style: none;
}

.shadow-block {
	position: fixed;
	left: -100vw;
	top: 0;
	z-index: 2;
	width: 100vw;
	height: 100vh;
	background: rgba(41, 41, 41, 0.6);
  opacity: 0;
  transition: opacity 2s ease;
}

.contact-block__menu-list-link::after {
	content: "";
	background-size: cover;
	width: 22px;
	height: 22px;
	position: absolute;
	top: 0;
	left: -28px;
	filter: brightness(0) saturate(100%) invert(100%) sepia(94%) saturate(1%) hue-rotate(226deg) brightness(104%) contrast(102%);
}

.phone-link::after,
.github-link::after,
.email-link::after {
	background-image: url('../assets/svg/telephone_icon.svg');
}

.email-link::after {
	background-image: url('../assets/svg/email.svg');
}

.github-link::after {
	background-image: url('../assets/svg/github_icon.svg');
}

.phone-item,
.github-item,
.email-item {
	padding-left: 22px;
}


@media screen and (max-width: 992px) {

	.list {
		padding: 5px 15px 0;
	}

	.contact-block__menu-list-link {
		font-size: 16px;
	}

	.phone-item,
	.github-item,
	.email-item {
		padding-left: 24px;
	}

	.contact-block__menu-list-link::after {
		width: 20px;
		height: 20px;
	}

}

@media screen and (max-width: 830px) {

	.list {
		padding: 5px 10px 0;
	}
	
	.contact-block__menu-list-link,
	.header__nav-list-text {
		font-size: 15px;
	}

	.footer-container {
		padding: 5px 10px;
	}

}

@media screen and (max-width: 762px) { 

	.container__left {
		width: 30%;
	}

	.container__right {
		width: 70%;
	}

	.contact-block__menu-list-link, 
	.header__nav-list-text {
		font-size: 14px;
	}

}

@media screen and (max-width: 650px) {

	.containers {
		flex-direction: column;
	}

	.container__left,
	.container__right {
		width: 100%;
	}

	.list {
		padding: 5px 28px 0;
	}

	.contact-block__menu-list-link,
	.header__nav-list-text {
		font-size: 18px;
	}

	.burger-menu {
		display: inline;
		position: fixed;
		width: 30px;
		height: 22px;
		top: 40px;
		right: 40px;
		z-index: 5;
		cursor: pointer;
	}

	.burger-lines {
		display: flex;
		height: 22px;
		justify-content: space-between;
		flex-direction: column;
	}

	.burger-line {
		width: 100%;
		height: 3px;
		background: rgb(44, 47, 149);
		border: none;
	}

	.header__nav-list {
		width: 320px;
		height: 100vh;
		flex-direction: column;
		position: fixed;
		right: -100%;
		top: 0;
		align-items: center;
		background: #292929;
		justify-content: center;
		row-gap: 40px;
		opacity: 0;
	}

	.header__nav {
		font-size: 18px;
	}

	.block-footer__img {
		height: 30px;
		width: 30px;
	}

	.rs-img {
		width: 81px;
	}

	.footer-year__title {
		font-size: 18px;
	}
	
	.block-experience__title,
  .block-skills__title,
  .block-projects__title,
  .block-code__title,
  .block-summary__title {
	  scroll-margin-top: 0;
  }

}

@media screen and (max-width: 480px) {

	.block-main__name-title {
		font-size: 30px;
	}

	.main-title__skill {
		width: 180px;
		left: 2.2em;
		font-size: 15px;
	}

	.body {
		min-width: 320px;
	}

}

.open {
	right: 0;
	opacity: 1;
	padding-top: 60px;
}

.rotate {
	transform: rotate(90deg);
}

.overflow {
	overflow: hidden;
}

.shadow-open {
	opacity: 1;
	z-index: 2;
}

.shadow-inin {
	left: 0;
}