*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
}

body {
	min-height: 100vh;
	background-color: var(--site-bg-color);
	font-family: var(--site-font-family);
	font-size: 20px;
	line-height: 1.3;
	font-style: normal;
	color: var(--site-text-color);
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

main {
	flex: 1 1 auto;
}

.container {
	max-width: 1640px;
	width: 100%;
	margin-inline: auto;
	padding-inline: 20px;
	width: 100%;
	box-sizing: border-box;
}

@media (max-width: 1640px) {
	.container {
		overflow-x: clip;
	}
}

/* Затемнение экрана */
.overlay {
	position: fixed;
	inset: 0;
	background: rgba(38, 38, 38, 0.7);
	z-index: var(--site-overlay-z-index);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--site-transition);
	will-change: opacity;
}

.overlay.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* header */

.header {
	display: flex;
	gap: 30px;
	justify-content: space-between;
	align-items: center;
	padding-top: 35px;
	padding-bottom: 35px;
	position: relative;
}

.header-logo {
	min-width: 150px;
}

.header-index-menu {
	display: none;
}

.home .header-index-menu {
	display: block;
}

.header-index-menu ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
}

.header-index-menu ul li {
	list-style: none;
	display: flex;
}

.header-index-menu ul li a {
	padding: 10px 30px;
	background-color: var(--site-dark-accent-color);
	border-radius: var(--site-extra-border-radius);
	white-space: nowrap;
	color: var(--site-white-accent-color);
	font-size: 20px;
	line-height: 1;
}

.header-decor {
	position: absolute;

	z-index: -1;
	display: block;
}

.home .header-decor {
	bottom: -135px;
	right: 120px;
	transform: none;
}

.header-decor {
	bottom: -65px;
	right: 50%;
	transform: translate(50%, 0);
}

@media (max-width: 840px) {
	.home .header-index-menu {
		display: none;
	}
}

@media (max-width: 767px) {
	.header-decor {
		display: none;
	}

	.header-logo {
		max-width: 130px;
		min-width: auto;
	}
}

/* MOBILE MENU */

.burger {
	width: 30px;
	min-width: 30px;
	height: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: none;
	border: none;
	cursor: pointer;
}

.burger__line {
	height: 3px;
	background: var(--site-dark-accent-color);
	transition: var(--site-transition);
}

.burger--active .burger__line:nth-child(1) {
	transform: translateY(10px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
	opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
	position: fixed;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	z-index: 1000;
	transition: var(--site-transition);
}

.mobile-menu--open {
	pointer-events: auto;
	opacity: 1;
}

.mobile-menu__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	transition: 0.3s;
}

.mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 430px;
	height: 100%;
	background: #fff;
	transform: translateX(100%);
	transition: var(--site-transition);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	gap: 30px;
	padding: 50px 35px;
}

.mobile-menu--open .mobile-menu__overlay {
	opacity: 1;
}

.mobile-menu--open .mobile-menu__panel {
	transform: translateX(0);
}

.mobile-menu__close {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.mobile-menu__close-line {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 24px;
	height: 2px;
	background-color: currentColor;
	transform-origin: center;
	transition: var(--site-transition);
}

/* Первая линия */
.mobile-menu__close-line:nth-child(1) {
	transform: translate(-50%, -50%) rotate(45deg);
}

/* Вторая линия */
.mobile-menu__close-line:nth-child(2) {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__list {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.mobile-menu__list li a {
	transition: var(--site-transition);
}
.mobile-menu__list li a:hover {
	color: var(--site-text-color);
}

.mobile-menu__footer {
	margin-top: auto;
	display: flex;
	justify-content: center;
}

.mobile-menu__logo img {
	max-width: 140px;
}

.mobile-menu__panel .decor.decor-1 {
	bottom: 150px;
	left: -35%;
	width: 100%;
}
.mobile-menu__panel .decor.decor-2 {
	bottom: 200px;
	right: 80px;
}
.mobile-menu__panel .decor.decor-3 {
	bottom: 80px;
	left: 55px;
}

@media (max-width: 767px) {
	.mobile-menu__panel {
		width: 100%;
	}
}

/* INDEX FIRST SCREEN */

.index-first-screen__border {
	background-repeat: repeat-x;
	background-size: auto 100%;
	background-position: top center;

	height: 48px;

	width: 100vw;
	margin-left: calc(-50vw + 50%);
	margin-top: -60px;
}

@media (max-width: 767px) {
	.index-first-screen__border {
		height: 30px;
	}
}

/* CONTACTS */

.contacts {
	background-repeat: repeat-x;
	background-size: auto 100%;
	background-position: top center;
	background-size: auto calc(100% + 1px);

	min-height: 780px;

	width: 100vw;
	margin-left: calc(-50vw + 50%);

	display: flex;
	align-items: center;

	margin-top: 110px;
}

.contacts-content {
	color: var(--site-white-color);
	display: flex;
	position: relative;
}

.contacts-content h2 {
	margin-bottom: 70px;
}

.contacts-content__form {
	flex: 0 1 50%;
}

.contacts-content__contacts {
	flex: 0 1 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.contacts-socials {
	display: flex;
	gap: 30px;
}

.contacts-socials__item {
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--site-accent-color);
	transition: var(--site-transition);
}

.contacts-socials__item:hover {
	background: var(--site-white-accent-color);
}

.contacts-data {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.contacts-data__item {
	display: flex;
	align-items: center;
	gap: 20px;
	color: var(--site-white-color);
}

.contacts-content .decor {
	z-index: 0;
}

.contacts-content .decor-1 {
	right: 235px;
	top: -205px;
}
.contacts-content .decor-2 {
	bottom: -215px;
	left: 50px;
}
.contacts-content .decor-3 {
	display: none;
}

.home .contacts-content .decor-3 {
	top: -550px;
	left: -305px;
	display: block;
}

@media (max-width: 1440px) {
	.contacts-socials__item {
		width: 80px;
		height: 80px;
	}

	.contacts-socials__item svg {
		height: 30px;
		width: auto;
	}
	.contacts {
		min-height: 650px;
	}

	.contacts-content h2 {
		margin-bottom: 40px;
	}
}

@media (max-width: 767px) {
	.contacts {
		padding: 70px 0;
		margin-top: 10px;
		min-height: 750px;
	}

	.contacts-content h2 {
		margin-bottom: 0px;
	}

	.contacts-content__form {
		flex: 0 1 100%;
		display: flex;
		flex-direction: column;
		gap: 50px;
	}

	.contacts-content__form .g-button {
		width: 100%;
	}

	.contacts-content__contacts {
		flex: 0 1 100%;
		align-items: start;
		display: flex;
		flex-direction: column;
		gap: 50px;
	}

	.contacts-content {
		flex-direction: column;
		gap: 40px;
	}

	.contacts-socials {
		gap: 20px;
	}

	.contacts-socials__item {
		width: 64px;
		height: 64px;
	}

	.contacts-socials__item svg {
		height: 25px;
		width: auto;
	}

	.contacts-socials__item:nth-child(1) svg {
		width: 31px;
		height: 24px;
	}

	.contacts-socials__item:nth-child(2) svg {
		width: 35px;
		height: 22px;
	}
	.contacts-socials__item:nth-child(3) svg {
		width: 36px;
		height: 36px;
	}

	.contacts-data {
		gap: 10px;
	}

	.contacts-data__item svg {
		height: 18px;
		width: auto;
	}
	.contacts-data__item:nth-child(1) svg {
		width: 17px;
		height: 18px;
	}
	.contacts-data__item:nth-child(2) svg {
		width: 19px;
		height: 14px;
	}

	.contacts-content .decor-1 {
		width: 37px;
		height: 33px;
		right: 30px;
		top: 35px;
	}
	.contacts-content .decor-2 {
		bottom: 50px;
		left: auto;
		right: -50px;
		width: 168px;
		height: 138px;
	}
	.contacts-content .decor-3 {
		top: -186px;
		left: -50%;
	}
}

/* footer */

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

.footer-columns {
	display: flex;
	align-items: end;
	gap: 100px;
}

.footer-columns {
	color: #929292;
}

.footer-column {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media (max-width: 767px) {
	.footer {
		padding-top: 50px;
		padding-bottom: 50px;
	}
	.footer-column {
		gap: 10px;
	}
	.footer-columns {
		flex-direction: column;
		gap: 20px;
		align-items: center;
		text-align: center;
	}
}

/* scroll up */

.scrollup {
	position: fixed;
	bottom: 70px;
	right: 70px;
	display: block;
	width: 73px;
	height: 70px;
	background: url(../img/content/scrollup.svg) center center / 70px 70px no-repeat transparent;
	opacity: 0;
	visibility: hidden;
	cursor: pointer;
	z-index: 999;
	transition: var(--site-transition);
}

.scrollup:hover {
	transform: scale(1.1);
}

.scrollup--visible {
	opacity: 1;
	visibility: visible;
}

@media (max-width: 1440px) {
	.scrollup {
		bottom: 20px;
		right: 20px;
	}
}

@media (max-width: 1024px) {
	.scrollup {
		display: none;
	}
}

.decor {
	position: absolute;
	z-index: -1;
	pointer-events: none;
}

.confetti-red {
	background: url(../img/content/confetti-red.svg) center center / contain no-repeat;
	width: 14px;
	height: 30px;
}
.confetti-yellow {
	background: url(../img/content/confetti-yellow.svg) center center / contain no-repeat;
	width: 24px;
	height: 30px;
}
.confetti-green {
	background: url(../img/content/confetti-green.svg) center center / contain no-repeat;
	width: 22px;
	height: 30px;
}
