/* Header */

.header {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translate(-50%, 0);
	width: 100%;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	background-color: rgba(255, 255, 255, 0);
	border-bottom: 1px solid rgba(217, 217, 217, 0);
	transition: all var(--default-transition);
}

.header_scroll {
	height: 70px;
	background-color: rgba(255, 255, 255, 1);
	box-shadow: var(--box-shadow);
}

.header__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header__logo {
	display: inline-flex;
	text-decoration: none;
	transition: all var(--default-transition);
	width: 200px;
	height: 40px;
	background: url("../images/logo.svg") no-repeat center / contain;
}

.header__burger {
	position: relative;
	width: 30px;
	height: 18px;
	border: 0;
	background-color: rgba(255, 255, 255, 0);
}

.header__burger-strip {
	display: block;
	position: absolute;
	right: 0;
	width: 30px;
	height: 2px;
	background-color: var(--black);
	border-radius: var(--border-radius);
	transition: all var(--default-transition);
	opacity: 1;
}

.header__burger-strip:nth-child(1) {
	width: 20px;
	top: 0;
}

.header__burger-strip:nth-child(2) {
	top: 50%;
	transform: translate(0, -50%);
}

.header__burger-strip:nth-child(3) {
	top: 50%;
	transform: translate(0, -50%);
}

.header__burger-strip:nth-child(4) {
	width: 20px;
	bottom: 0;
}

.header__burger:hover .header__burger-strip {
	background-color: var(--green);
}

.header__burger_active .header__burger-strip:nth-child(1) {
	top: -4px;
	opacity: 0;
}

.header__burger_active .header__burger-strip:nth-child(2) {
	transform: translate(0, -50%) rotate(45deg);
}

.header__burger_active .header__burger-strip:nth-child(3) {
	transform: translate(0, -50%) rotate(-45deg);
}

.header__burger_active .header__burger-strip:nth-child(4) {
	bottom: -4px;
	opacity: 0;
}

/* Menu */

.nav {
	position: fixed;
	top: -100%;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--ultramarine);
	z-index: 5;
	opacity: .2;
	visibility: hidden;
	pointer-events: none;
	overflow: hidden;
}

.nav_open {
	top: 0;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transition: all .75s cubic-bezier(.2, .6, 0, 1);
}

.menu {
	list-style-type: none;
	padding: 0;
	margin: 0;
	position: absolute;
	top: -100%;
	left: 0;
	display: flex;
	align-items: center;
	padding-top: 180px;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: var(--white);
	opacity: .2;
	visibility: hidden;
	pointer-events: none;
}

.menu_open {
	top: 0;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: all .75s cubic-bezier(.2, .6, 0, 1);
	transition-delay: .35s;
}

.menu__item {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	margin-bottom: var(--l);
	transform: translate3d(0, 36px, 0);
	z-index: 2;
}

.menu__item:last-child {
	margin-bottom: 0;
}

.menu__item_show {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	transform: translate3d(0, 0, 0);
	transition: all var(--bounce-transition);
	display: flex;
	flex-direction: column;
	align-self: flex-start;
	width:100%;
	padding-right: 85px;
}

.menu__item_show:nth-child(1) {
	transition-delay: 1s;
}

.menu__item_show:nth-child(2) {
	transition-delay: 1.1s;
}

.menu__item_show:nth-child(3) {
	transition-delay: 1.2s;
}

.menu__item_show:nth-child(4) {
	transition-delay: 1.3s;
}

.menu__item_show:nth-child(5) {
	transition-delay: 1.4s;
	padding-right: 0;
}


.menu__container {
   display: flex;
   align-items: center;
   align-self: flex-start;
}


.header__menu_name {
	text-decoration: none;
	color: var(--light-black);
	margin-bottom: var(--l);
	transition: all var(--default-transition);
	font-size: 28px;
	font-weight: 600;
	line-height: 38px;
	min-height: 76px;
}

.menu__link {
	text-decoration: none;
	color: var(--light-black);
	transition: all var(--default-transition);
	font-size: 16px;
	font-weight: 400;
	margin-bottom: var(--s);
}

.menu__link.current {
	font-weight: 700;
	color: var(--green);
}

.menu__link.current:hover {
	color: var(--green);
}

.menu__link.current:hover::before {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.menu__link:hover {
	color: var(--green);
}

.menu__link:hover:before {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.menu__bg {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 0);
	width: 100%;
	height: 45%;
	background: url("../images/menu-open-bg.svg") no-repeat center/contain;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.menu__bg_show {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	transition: all var(--default-transition);
	transition-delay: 1.8s;
	width: 200%;
}


/* Home */

.home {
	padding-top: 100px;
}

.home__container {
	display: flex;
	justify-content: space-between;
}

.home__flex {
	width: 44%;
	flex: none;
}

.home__content {
	padding-top: 100px;
}

.home__flex-img {
	position: relative;
	height: 640px;
	width: 56%;
	z-index: -1;
}

.home__woman {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.home h1 {
	font-weight: 600;
	font-size: 52px;
}

.home h1 span {
	font-family: 'Caveat', cursive;
	font-size: 70px;
	font-weight: 700;
	color: var(--ultramarine);
}

.home p {
	margin-top: var(--m);
}

/* Team */

.team {
	margin-top: -140px;
}

.team__wrapper {
	padding: var(--xxl);
	border-radius: var(--xxl);
	background: url("../images/team/team-fon.svg") no-repeat center / cover;
	background-color: var(--ultramarine);
	color: var(--white);
}

.team__title {
	position: relative;
	width: 65%;
	font-weight: 600;
	margin-bottom: var(--m);
	z-index: 1;
	color: var(--white);
	font-size: 42px;
}

.team__title span {
	font-family: Caveat, cursive;
	font-size: 56px;
	font-weight: 400;
}

.team__title::after {
	content: '';
	position: absolute;
	left: -20px;
	bottom: -100px;
	width: 250px;
	height: 85px;
	background: url("../images/team/title-line.svg") no-repeat center / contain;
	z-index: -1;
}

.team__slider {
	overflow: visible;
}

.person-1 {
	margin-top: 156px;
}

.person-2 {
	margin-top: 38px;
}

.person-3 {
	margin-top: 0px;
}

.person-4 {
	margin-top: 50px;
}

.person-5 {
	margin-top: -15px;
}

.person-1 .person__img {
	transform: rotate(-10deg);
	margin-top: 25px;
}

.person-2 .person__img {
	transform: rotate(5deg);
}

.person-3 .person__img {
	transform: rotate(-10deg);
}

.person-4 .person__img {
	transform: rotate(7deg);
}

.person-5 .person__img {
	transform: rotate(-3deg);
	margin-top: 40px;
}

.person__name {
	font-family: Caveat, cursive;
	font-size: 31px;
	color: var(--white);
	margin-bottom: var(--s);
	letter-spacing: 0.01em;
}

.person__img {
	margin-top: 70px;
	background-color: var(--white);
	padding: 10px 10px 42px 10px;
}

.person__img img {
	width: 100%;
	height: 100%;
	max-height: 175px;
	object-fit: cover;
}

.person__position {
	width: 63%;
	font-size: 12.5px;
	line-height: 17px;
}

.person__line {
	z-index: -1;
	position: absolute;
}

.person__line-1 {
	left: -50px;
	top: 42%;
	width: 53px;
	height: 63px;
	background: url("../images/team/team-line-1.svg") no-repeat center/contain;
}

.person__line-2 {
	left: -30px;
	top: 30%;
	width: 44px;
	height: 64px;
	background: url("../images/team/team-line-2.svg") no-repeat center/contain;
}

.person__line-3 {
	left: 55px;
	top: 18%;
	width: 65px;
	height: 64px;
	background: url("../images/team/team-line-2.svg") no-repeat center/contain;
	transform: scale(-1, 1) rotate(45deg);
}

.person__line-4 {
	left: 100px;
	top: 28%;
	width: 44px;
	height: 64px;
	background: url("../images/team/team-line-1.svg") no-repeat center/contain;
	transform: scale(-1, 1) rotate(0deg);
}

.person__line-5 {
	right: -15px;
	top: 4%;
	width: 64px;
	height: 64px;
	background: url("../images/team/team-line-1.svg") no-repeat center/contain;
	transform: scale(-1, 1) rotate(30deg);
}

/* Chapter */

.chapter {
	padding-top: 180px;
	margin-bottom: 180px;
}

.chapter__title {
	text-align: center;
	margin-bottom: var(--m);
	font-size: 40px;
	font-weight: 600;
}

.chapter__subtitle {
	text-align: center;
	max-width: 500px;
	margin: 0 auto;
	margin-bottom: var(--m);
}

.chapter__menu {
	width: 100%;
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	overflow-x: auto;
	padding-top: var(--s);
	padding-bottom: var(--s);
}

.chapter__menu-item {
	flex: none;
	margin-right: var(--m);
}

.chapter__menu-item:last-child {
	margin-right: 0;
}

.chapter__menu-filter {
	display: inline-block;
	white-space: nowrap;
	text-decoration: none;
	padding: var(--s) var(--m);
	font-size: 16px;
	border-radius: 40px;
	background-color: var(--white);
	color: var(--black);
	transition: all var(--default-transition);
	line-height: 100%;
}

.chapter__menu-filter:hover {
	color: var(--ultramarine);
}

.chapter__menu-filter.active {
	background: var(--ultramarine);
	color: var(--white);
	font-weight: 600;
}

.chapter__wrapper {
	margin-top: var(--m);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 1fr;
	gap: var(--l);
}

.chapter__card {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	background: var(--white);
	padding: var(--m);
	text-decoration: none;
	transition: all var(--default-transition);
	color: var(--black);
}

.chapter__card:hover {
  transform: translateX(0) rotate(-3deg);
  box-shadow: 9px 5px 0px 0px #533FD7;
}

.chapter__card:hover {
	color: var(--black);
}

.chapter__card:hover .chapter__card-title {
	color: var(--ultramarine);
}

.chapter__card:hover .chapter__card-icon {
	background: url("../images/arrow-ultramarine.svg") center center / 14px 14px no-repeat;
	border: 1px solid var(--ultramarine);
}

.chapter__card-content {
	position: relative;
	width: 100%;
	height: 100%;
}

.chapter__card-icon {
	position: absolute;
	top: 0;
	right: 0;
	width: var(--l);
	height: var(--l);
	border-radius: 100%;
	border: 1px solid var(--light-gray);
	background: url("../images/arrow-black.svg") center center / 14px 14px no-repeat;
	z-index: 1;
	transition: var(--default-transition);
}

.chapter__card-title {
	margin-top: var(--s);
	font-size:20px;
	font-weight: 600;
}

.chapter__card-descr {
	margin-top: var(--s);
	font-size: 14px;
	line-height: 21px;
}


/* 404 */


.page404 {
	padding: 180px 0;
}

.page404__content {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.page404__picture {
	position: relative;
	margin-bottom: var(--l);
	display: flex;
	align-items: center;
	justify-content: center;
}

.page404__picture span {
	display: inline-block;
	color: var(--ultramarine);
	line-height: 100%;
	font-weight: 700;
	font-size: 180px;
}

.page404__animation {
	width: 250px;
	height: 250px;
}

.page404__title {
	margin-bottom: var(--s);
	font-size: 32px;
	font-weight: 600;
}

.page404__descr {
	margin-bottom: var(--l);
}

/* Breadcrumb */

.breadcrumbs {
	padding: 150px 0 40px 0;
}

.breadcrumbs a {
	font-size: 16px;
	font-weight: 400;
	color: var(--juicy-green);
	text-decoration: none;
	margin-right: var(--s);
}

.breadcrumbs span {
	font-size: 16px;
	font-weight: 400;
	margin-left: var(--s);
}


/* WelcomeBook */

.welcomebook__content {
	width: 70%;
	margin: 0 auto;
	padding: 5px 0;
}

.welcomebook__content h1 {
	font-size: 52px;
	font-weight: 600;
	line-height: 70px;
	margin-bottom: var(--m);
}

.welcomebook__content h2 {
	font-size: 32px;
	font-weight: 600;
	line-height: 43px;
	margin: var(--m) 0;
}

.welcomebook__content p {
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
}

.welcomebook__bg {
	padding: 40px 0;
}

.welcomebook__content:last-child {
	border-bottom: 1px solid #dcdcdc;
}

.welcomebook__content:first-child {
	border-bottom: unset;
}

.welcomebook__content ul li {
    font-size:16px;
}

.welcomebook__links {
	padding: 0 0 60px 0;
}

.welcomebook__links .welcomebook__chapter {
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	color: var(--ultramarine);
	margin-bottom: var(--s);
}


.welcomebook__links .welcomebook__chapter_title {
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	color: var(--ultramarine);
}

.welcomebook__links .welcomebook__chapter_title:hover, .welcomebook__links .welcomebook__chapter:hover {
	color: var(--green);
}

.welcomebook__links .welcomebook__lottie {
	width: 190px;
	height: 190px;
	display: inline-block;
}

.img__bg-size {
    max-width: 80%;
}



/* Footer */

.footer {
	background-color: var(--black);
	color: var(--white);
	padding-top: var(--xxl);
	padding-bottom: var(--xxl);
}

.footer__container {
	padding: 0 0 0 185px;
}

.footer__wrapper {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: wrap;
}

.footer__column {
	width:15%;
	flex: none;
}

.footer__column:nth-child(1) {
	margin-right: auto;
}

.footer__logo {
	display: inline-block;
	width: 200px;
	height: 40px;
	background: url("../images/white-logo.svg") no-repeat center / contain;
}

.footer__menu-name {
	margin-bottom: var(--m);
	font-size: 16px;
	font-weight: 600;
}

.footer__menu-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.footer__menu-list > li {
	margin-bottom: var(--s);
}

.footer__menu-list > li:last-child {
	margin-bottom: 0;
}

.footer__menu-list > li > a {
	position: relative;
	display: inline-block;
	text-decoration: none;
	color: var(--gray);
	transition: var(--default-transition);
	padding-top: 2px;
	padding-bottom: 2px;
	font-size: 14px;
	line-height: 19px;
}

.footer__menu-list > li > a:hover {
	color: var(--green);
}

.footer__menu-list > .current-menu-item > a {
	font-weight: 700;
	color: var(--green);
}

.footer__menu-list > .current-menu-item > a:hover {
	color: var(--green);
}

.footer__block {
	color: var(--gray);
	margin-top: 70px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

.footer__block-menu {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.footer__block-menu > li {
	margin-right: var(--m);
}

.footer__block-menu > li:last-child {
	margin-right: 0;
}

.footer__block-menu > li > a {
	position: relative;
	display: inline-block;
	text-decoration: none;
	color: var(--gray);
	transition: var(--default-transition);
	padding-top: 2px;
	padding-bottom: 2px;
}

.footer__block-menu > li > a:hover {
	color: var(--green);
}

.footer__block-menu > .current-menu-item > a {
	font-weight: 700;
	color: var(--green);
}

.footer__block-menu > .current-menu-item > a:hover {
	color: var(--green);
}

/* Other */

.text-p__right {
   padding-right: 35%;
}

.img-rel {
	position: relative;
	text-align: right;
	top: -40px;
}


@media screen and (max-width : 1550px) {
	.menu {
		justify-content: space-evenly;
	}
	.header__menu_name {
		font-size: 24px;
	}
	
	.footer__menu-name {
    margin-bottom: var(--m);
    min-height: 51px;
    width: 75%;
}

}

@media screen and (max-width : 1400px) {
	.menu {
	padding-top: 120px;
	}
	
	.menu__item_show {
    padding-right: 60px;
    }
    
    .chapter__card {
    padding: var(--m);
    }
    
	.team {
	margin-top: -90px;
	}
	
	.img__bg-size {
    max-width: 100%;
    }
	
}

@media (max-width : 1199px) {
	.header__menu_name {
		font-size: 20px;
		line-height: 23px;
		min-height: 50px;
	}
	
	.home h1 {
		font-size: 40px;
	}
	
	.home h1 span {
		font-size: 51px;
	}
	
	.team {
		margin-top: -180px;
	}
	
	.team__title {
		width: 90%;
	}
	
	.team__wrapper {
		padding: var(--xl);
	}
	
	.chapter__wrapper {
	grid-template-columns: repeat(3, 1fr);
	}
	
	.person__position {
		width: 100%;
	}
	
	.person__name {
		font-size: 22px;
	}
	
	.chapter__menu {
		justify-content: flex-start;
		padding-left: var(--m);
		padding-right: var(--m);
	}
	
	.footer__container {
		padding: 0 0 0 20px;
	}
	
	.footer__menu-name {
		font-size: 12px;
	}
	
}

@media screen and (max-width : 992px) {
    .menu {
	   display: block;
	   text-align: center;
	   overflow-y: auto;
	   overflow-x: hidden;
	}
	
	.menu__container {
      display: block;
      text-align: center;
    }
	
	.menu__link {
	  font-size: 14px;
	}
	
	.menu__item_show {
     padding-right: 0px;
    }
    
	.home {
		padding-top: 120px;
	}

	.home__container {
		flex-direction: column;
	}

	.home__flex {
		width: 100%;
	}

	.home__flex:first-child {
		margin-bottom: var(--m);
	}

	.home__flex-img {
		height: 650px;
		z-index: -1;
	}
	.team {
		margin-top: -120px;
		background: url(../images/team/team-fon.svg) no-repeat center / cover;
		background-color: var(--ultramarine);
		padding: var(--xl) 0;
	}

	.team__wrapper {
		border-radius: 0;
		background: none;
		padding: 0;
	}

	.team__title {
		width: 100%;
	}

	.person__position {
		width: 63%;
	}

	.chapter__wrapper {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.welcomebook__content {
		width: 100%;
	}

	.footer {
		padding-top: 90px;
		padding-bottom: 90px;
	}

	.footer__menu-name {
		font-size: 16px;
		min-height: 51px;
	}

	.footer__wrapper {
		gap: var(--xxl) var(--m);
	}

	.footer__column {
		width: 15%;
	}

	.footer__column:nth-child(1) {
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.footer__block {
		flex-direction: column;
		align-items: center;
	}
}

@media screen and (max-width : 768px) {
	.header__menu_name {
		min-height: 0;
		margin-bottom: var(--s);
		width: 100%;
	}

	.menu__item {
		margin-bottom: var(--m);
	}

	.menu__item_show {
		width: 100%!important;
	}

	.menu__bg {
		transform: translate(-50%, 150%);
		height: 55%;
	}

	.home h1 {
		font-size: 35px;
	}

	.home h1 span {
		font-size: 42px;
	}

	.home__flex-img {
		height: 500px;
	}

	.home__content {
		padding-top: 0px;
		text-align: center;
	}

	.home p {
		font-size: 14px;
	}

	.team {
		margin-top: -80px;
		border-radius: 30px;
	}

	.team__title {
		width: 100%;
		font-size: 20px;
		text-align: center;
	}

	.team__title span {
		font-size: 42px;
		display: block;
	}

	.person__name {
		font-size: 20px;
	}

	.person__position {
		width: 100%;
	}

	.person__line-1 {
		left: -15px;
	}

	.person__line-2 {
		left: 0px;
	}

	.person__line-3 {
		top: 30%!important;
	}

	.chapter {
		padding-top: 120px;
		margin-bottom: 120px;
	}

	.chapter__wrapper {
		gap: var(--s);
	}

	.chapter__title {
		font-size: 24px;
	}

	.chapter__subtitle {
		font-size: 14px;
	}

	.chapter__card {
		padding: var(--m);
	}

	.team__title::after {
		display: none;
	}

	.footer__container {
		padding: 0 20px 0 20px;
	}

	.footer__menu-name {
		display: none;
	}

}

@media screen and (max-width : 576px) {
	.header {
		height: 80px;
		background: #fff;
	}

	.header_scroll {
		height: 60px;
	}
	
	.header__logo {
		width: 160px;
		height: 35px;
	}

	.menu {
		padding-top: 100px;
	}

	.menu__link {
		font-size: 14px;
	}

	.home {
		padding-top: 120px;
	}

	.home__flex-img {
		height: 360px;
	}

	.team__title::after {
		display: none;
	}

	.person-1,
	.person-3,
	.person-5 {
		margin-top: var(--m);
	}

	.person-2,
	.person-4 {
		margin-top: 0;
	}

	.person__line {
		height: 40px;
		top: 80px;
		width: 30px;
	}

	.chapter__wrapper {
		grid-template-columns: 1fr;
	}

	.chapter__card-title, .chapter__card-descr {
		margin-top: var(--s);
	}

	.page404__animation {
		width: 230px;
		height: 230px;
	}

	.page404__picture span {
		font-size: 130px;
	}

	.page404__picture span:last-child {
		margin-left: -45px;
		z-index: 1;
	}

	.page404__picture span:first-child {
		margin-right: -25px;
		z-index: 1;
	}

	.breadcrumbs {
		padding: 100px 0 20px 0;
	}

	.welcomebook__content h1 {
		font-size: 28px;
		line-height: 38px;
	}

	.welcomebook__content h2 {
    font-size: 24px;
    line-height: 32px;
    margin: var(--s) 0;
}

	.welcomebook__content p, .welcomebook__content ul li  {
    font-size: 14px;
}

	.welcomebook__content {
		padding: 15px 0;
	}

	.welcomebook__bg {
    padding: 0 0 60px;
}

	.footer {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.footer__logo {
		width: 160px;
		height: 35px;
	}

	.footer__block {
		margin-top: var(--xxl);
	}

	.footer__column {
		width: 46%;
	}

	.footer__wrapper {
		gap: var(--m) var(--s);
	}

	.text-p__right {
    padding-right: 0;
    }

    .img-rel {
    top: -10px;
    }
	
}