@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;1,400&display=swap');

/* ---------- base ---------- */
html, body {
	padding: 0;
	line-height: normal;
	color: #ffffff;
	background-color: #1C0A09;
	width: 100%;
	margin: 0;
	font-weight: normal;
	font-family: 'Roboto', sans-serif;
	font-style: normal;
	-webkit-overflow-scrolling: touch;
	overflow-x: hidden;
	min-height: 100%;
}

html { height: 100%; }

body {
	height: 100%;
	display: flex;
	flex-direction: column;
}

header, footer { flex: 0 0 auto; }
main { flex: 1 0 auto; }

* {
	outline: none;
	box-sizing: border-box;
}

ul {
	padding: 0;
	margin: 0;
	list-style: none;
}

a {
	text-decoration: none;
	color: #ffffff;
	transition: all 0.3s ease-in-out;
}

a:hover {
	color: #F3CE64;
	transition: all 0.3s ease-in-out;
}

button {
	cursor: pointer;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	border: none;
	transition: all 0.3s ease-in-out;
	font-family: 'Roboto', sans-serif;
	color: #ffffff;
}

h1, h2, h3, h4 {
	margin: 0;
	padding: 0;
}

img {
	max-width: 100%;
	height: auto;
	align-self: center;
}

/* ---------- center block ---------- */
.center_block {
	max-width: 1024px;
	width: calc(100% - 80px);
	margin: 0 auto;
	position: relative;
}

@media only screen and (max-width: 820px) {
	.center_block { width: calc(100% - 40px); }
}

/* ---------- header ---------- */
.header {
	margin-top: 30px;
}

.header .logo {
	display: flex;
	justify-content: center;
}

.header .center_block {
	border-bottom: 1px solid #6F3E34;
	padding-bottom: 20px;
}

.header .mob_menu { display: none; }

.header .main_nav { margin-top: 30px; }

@media only screen and (max-width: 1024px) {
	.header { margin-top: 20px; }
}

@media only screen and (max-width: 820px) {
	.header .logo { width: 120px; }
	.header .center_block {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.header .mob_menu { display: block; }
	.header .main_nav { display: none; }
}

/* ---------- main nav ---------- */
.main_nav ul {
	display: flex;
	justify-content: space-between;
}

.main_nav li.active a { color: #F3CE64; }

.main_nav a {
	font-size: 25px;
	text-transform: lowercase;
	font-variant: small-caps;
	font-weight: bold;
	letter-spacing: 0.04em;
}

@media only screen and (max-width: 820px) {
	.main_nav { margin-top: 40px; }
	.main_nav ul {
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.main_nav li { margin-bottom: 20px; }
	.main_nav li:last-child { margin-bottom: 0; }
}

/* ---------- mobile menu ---------- */
.mobile_menu {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	z-index: 9999;
	right: -100%;
	transition: all 0.3s ease-in-out;
	padding: 40px;
	background-color: #1C0A09;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.mobile_menu.active {
	right: 0;
	transition: all 0.3s ease-in-out;
}

.mobile_menu .close {
	position: absolute;
	top: 30px;
	right: 20px;
	width: auto;
}

.mobile_menu .email { margin-top: 30px; }

.mobile_menu .email a {
	font-size: 16px;
	text-decoration: underline;
}

/* ---------- static content (salon page) ---------- */
.static_content {
	margin-top: 40px;
}

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

.static_content .image {
	width: 300px;
	display: flex;
	justify-content: center;
}

.static_content .image img { border-radius: 20px; }

.static_content .content_wrapper {
	width: calc(100% - 340px);
	margin-top: -14px;
}

.static_content .content_wrapper p {
	font-size: 17px;
	line-height: 169.6%;
}

.static_content .phone li { margin-bottom: 10px; }
.static_content .phone li:last-of-type { margin-bottom: 0; }

.static_content h1 {
	text-transform: lowercase;
	font-variant: small-caps;
	font-size: 30px;
	color: #F3CE64;
}

.static_content .buttons {
	display: flex;
	align-items: center;
	margin-top: 20px;
}

.static_content .buttons a { margin-left: 10px; }

.static_content .buttons button,
.static_content .buttons a {
	background-color: #ffffff;
	padding: 0 30px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1C0A09;
	font-size: 13px;
}

.static_content .buttons button:hover,
.static_content .buttons a:hover {
	background-color: #F3CE64;
	color: #1C0A09;
}

@media only screen and (max-width: 768px) {
	.static_content .content_wrapper p { font-size: 14px; }
}

@media only screen and (max-width: 600px) {
	.static_content .center_block { flex-direction: column; }
	.static_content .image { width: 100%; }
	.static_content .content_wrapper {
		width: 100%;
		margin-top: 20px;
	}
	.static_content .buttons {
		flex-direction: column;
		justify-content: flex-start;
	}
	.static_content .buttons a {
		margin-left: 0;
		margin-top: 15px;
	}
	.static_content .buttons button,
	.static_content .buttons a { width: 100%; }
}

/* entrance animations (replacement for framer-motion) */
@keyframes fadeInLeft {
	from { opacity: 0; transform: translateX(-20px); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
	from { transform: translateY(20px); }
	to { transform: translateY(0); }
}

.static_content .image { animation: fadeInLeft 0.4s ease-out 0.1s both; }
.static_content h1 { animation: slideUp 0.4s ease-out both; }
.static_content .content { animation: fadeInUp 0.4s ease-out 0.2s both; }
.static_content .phone li { animation: fadeInUp 0.4s ease-out 0.4s both; }

/* ---------- modal ---------- */
.modal_register {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.3s ease-in-out, opacity 0.3s ease-in-out;
	z-index: 9999;
}

.modal_register.visible {
	visibility: visible;
	opacity: 1;
}

.modal_register .modal {
	width: 700px;
	height: 700px;
	position: relative;
	z-index: 100;
	opacity: 0;
	transform: translateY(100px);
	transition: all 0.3s ease-in-out;
}

.modal_register.active .modal {
	opacity: 1;
	transform: translateY(0);
}

.modal_register .modal_overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: rgba(26, 8, 7, 0.8);
}

.modal_register .close_modal {
	position: absolute;
	right: -30px;
	top: -30px;
}

.modal_register iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

@media only screen and (max-width: 768px) {
	.modal_register .modal {
		width: calc(100% - 40px);
		height: 80vh;
	}
	.modal_register .close_modal { right: 0; }
}

/* ---------- text pages ---------- */
.page {
	margin-top: 40px;
}

.page h1 {
	text-transform: lowercase;
	font-variant: small-caps;
	font-size: 30px;
	color: #F3CE64;
}

.page h2 {
	margin-top: 30px;
}

.page h3 {
	margin-top: 20px;
}

.page p {
	font-size: 16px;
	line-height: 1.8;
}

.page ul {
	list-style: disc;
	margin-left: 35px;
}

.page ul li {
	font-size: 16px;
	line-height: 1.8;
}

.page.offer h2 {
	margin-top: 20px;
	font-size: 20px;
}

.page .link { margin-top: 20px; }

.page .link a {
	background-color: #F3CE64;
	padding: 0 30px;
	height: 40px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #1C0A09;
	font-size: 13px;
}

.page .link a:hover {
	background-color: #ffffff;
	color: #1C0A09;
}

@media only screen and (max-width: 600px) {
	.page p,
	.page ul li { font-size: 14px; }
	.page .link a { padding: 0 20px; }
}

/* ---------- contacts table ---------- */
.contacts table {
	width: 100%;
	margin-top: 20px;
}

.contacts td {
	padding: 5px 10px;
	font-size: 16px;
	line-height: 1.4;
}

.contacts td:first-child {
	padding: 5px 10px 5px 0;
	font-weight: bold;
}

@media only screen and (max-width: 600px) {
	.contacts tr {
		flex-direction: column;
		display: flex;
		margin-bottom: 10px;
	}
	.contacts tr:last-child { margin-bottom: 0; }
	.contacts td {
		font-size: 14px;
		padding: 5px;
		border-right: 1px solid #6F3E35;
		border-left: 1px solid #6F3E35;
	}
	.contacts td:last-child {
		border-bottom: 1px solid #6F3E35;
		border-top: 1px solid #6F3E35;
	}
	.contacts td:first-child {
		padding: 5px;
		border-top: 1px solid #6F3E35;
	}
}

/* ---------- footer ---------- */
.footer {
	margin-top: 40px;
	border-top: 1px solid #6F3E34;
	padding-top: 40px;
	padding-bottom: 60px;
}

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

.footer .email { margin-top: 10px; }

.footer ul {
	margin-top: 30px;
	display: flex;
	justify-content: space-between;
	font-size: 14px;
}

.footer ul li { margin: 0 5px; }

.footer ul a { text-decoration: underline; }

.footer .personal { margin-top: 30px; }

.footer .personal a {
	background-color: #F3CE64;
	padding: 0 30px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1C0A09;
	font-size: 13px;
}

.footer .personal a:hover {
	background-color: #ffffff;
	color: #1C0A09;
}

.footer .cards {
	width: 200px;
	margin: 0 auto;
}

.footer p {
	font-size: 14px;
	line-height: 1.8;
	margin: 0;
	text-align: center;
}

@media only screen and (max-width: 600px) {
	.footer ul { flex-direction: column; }
	.footer ul li {
		text-align: center;
		margin: 5px;
	}
	.footer ul li:last-child { margin-bottom: 0; }
	.footer .personal a { padding: 0 20px; }
	.footer p { font-size: 12px; }
}
