@import url(https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap);
@import url(assets/fontawesome-free-6.5.2-web/css/fontawesome.min.css);
@import url(assets/fontawesome-free-6.5.2-web/css/brands.min.css);
@import url(assets/fontawesome-free-6.5.2-web/css/solid.min.css);

:root {
	--var-bgcolor: #fff;
	--var-color: #000;
	--var-shadow-color: rgba(0 0 0 / 25%);
	--var-color-hover: #eaeaea;
	--header-height: 76px;
	--header-min-width: 300px;
	--header-padding: 5rem;
	--var-menu-opened-color: rgba(255, 255, 255, 0.75);
	--content-max-width: 75rem
}

@media (prefers-color-scheme: dark) {
	:root {
		--var-bgcolor: rgb(3 3 3);;
		--var-color: #eee;
		--var-color-hover: #3c3c3c;
		--var-shadow-color: rgba(157, 157, 157, 0.482);
		--var-menu-opened-color: rgba(0, 0, 0, 0.75);
	}
}

/* material ui customizaiton https://material-web.dev/theming/color/#tokens */

:root {
	--md-outlined-select-text-field-outline-color: var(--var-color);
	--md-outlined-select-text-field-container-shape: 0px;
	--md-outlined-select-text-field-input-text-color: var(--var-color);
	--md-outlined-select-text-field-input-text-font: "Jost", sans-serif;
	--md-outlined-select-text-field-hover-outline-color: var(--var-color);
	--md-outlined-select-text-field-focus-input-text-color: var(--var-color);
	--md-outlined-select-text-field-hover-trailing-icon-color: var(--var-color);
	--md-outlined-select-text-field-hover-input-text-color: var(--var-color);
	--md-sys-color-primary: var(--var-color);
	--md-sys-color-secondary: var(--var-bgcolor);
	--md-sys-color-primary-container: var(--var-bgcolor);
	--md-sys-color-secondary-container: var(--var-bgcolor);
}

md-outlined-select::part(menu) {
	--md-menu-container-color: var(--var-bgcolor);
	--md-menu-container-shape: 0px;
	--md-sys-color-on-surface: var(--var-color);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Jost", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	color: var(--var-color);
}

html{
	scroll-behavior: smooth;
}

body {
	background-color: var(--var-bgcolor);
}

h1, h2, h3, h4, p, em, small {
	font-family: "Cormorant Garamond", sans-serif;
}

a {
	text-decoration: none;
	color: var(--var-color);
}

a :hover {
	text-decoration: underline;
	text-decoration-skip-ink: all;
}

h2 {
	font-family: "Cormorant Garamond", serif;
	font-weight: 300;
	font-style: normal;
	font-size: 48px;
	color: var(--var-color)
}

main {
	display: flex;
	padding-top: var(--header-height);
	min-width: var(--header-min-width);
	min-height: 100vh;
	flex-direction: column;
	align-items: center;
}

/* Header */

.header {
	display: flex;
	box-shadow: var(--var-shadow-color) 0 1px 4px 0;
	min-width: 300px;
	height: var(--header-height);
    z-index: 1000;
    position: fixed;
    background-color: var(--var-bgcolor);
	min-width: 100vw;
	justify-content: center;
}

.header__links {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	justify-items: center;
	padding: 0 var(--header-padding);
}

.header__links * {
	text-wrap: nowrap;
}

.navigation__links {
	display: flex;
	flex-direction: row;
	justify-self: flex-start;
	gap: 2rem;
}

.header__links .link{
	display: flex;
	align-self: center;
	align-items: center;
	font-size: 20px;
}

.header__links .link.link--active * {
	font-weight: 500;
}

.logo {
	display: flex;
	position: absolute;
    height: var(--header-height);
	left: 50%;
	transform: translateX(-50%);
}

.logo__image {
	fill: var(--var-color);
	height: var(--header-height);
	width: auto;
}

.logo__image .st0,
.logo__image .st1 {
	fill: var(--var-color);
	stroke: var(--var-color);
    stroke-width: .5px;
}

.contact__links {
	display: flex;
	gap: 12px;
	justify-self: end;
}

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

.social__links {
	display: flex;
	align-content: center;
}

.working__hours {
	font-size: smaller;
}

.phone__number {
	gap: 10px;
	display: inline-flex;
	font-size: 20px;
	font-weight: 400;
}

.social__links .link a i {
	padding: 9px;
	font-size: 30px;
	text-decoration: none;
}

.instagram__logo,
.telegram__logo {
    border-radius: 7px;
}

.instagram__logo:hover,
.telegram__logo:hover {
	opacity: 1;
    background-color: var(--var-color-hover);
}

.menu-toggle {
	display: none;
}

.hamburger, .hamburger::before, .hamburger::after {
	width: 25px;
	height: 2px;
	background-color: var(--var-color);
	display: block;
	content: '';
	position: relative;
	transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
	position: absolute;
	top: -8px;
}

.hamburger::after {
	top: 8px;
}

.menu {
	position: fixed;
	top: var(--header-height);
	right: 0;
	width: 100%;
	height: 100%;
	background: var(--var-menu-opened-color);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: var(--header-height);
	align-items: center;
	text-align: center;
	transform: translateY(-100%);
	transition: transform 0.35s ease-in-out;
	z-index: 999;
}

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

.menu ul li {
	margin: 20px 0;
	font-size: 20px;
}

.menu-open .menu {
	transform: translateY(0);
}

.menu-open .hamburger {
	background-color: transparent;
}

.menu-open .hamburger::before {
	transform: rotate(45deg);
	top: 0;
}

.menu-open .hamburger::after {
	transform: rotate(-45deg);
	top: 0;
}

@media (prefers-color-scheme: dark) {
	.logo__image .st0,
	.logo__image .st1 {
		stroke-width: 1px;
	}
}

@media (max-width: 1200px) {
	header .contact__links,
	header .navigation__links {
		display: none;
		justify-self: center;
	}

	.header__links {
		grid-template-columns: 1fr;
		padding: 0;
		justify-content: center;
	}

	div.menu-toggle {
		position: absolute;
		right: 0;
		cursor: pointer;
		display: flex;
		box-sizing: content-box;
		height: var(--header-height);
		width: var(--header-height);
		justify-content: center;
		align-items: center;
	}

	.menu {
		display: flex;
	}

	.menu .navigation__links {
		flex-direction: column;
		justify-self: center;
	}

	.menu .navigation__links .link {
		margin: 0;
	}

	.menu .contact__links {
		width: 100%;
		justify-content: space-around;
		margin-right: 0;
	}

	.menu .contact__links .contact__info {
		align-items: flex-start;
	}
}

@media (orientation: landscape) {
	.menu .navigation__links {
		flex-direction: row;
	}
}

/* Greetings section */

.greetings {
	height: auto;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	min-height: 100vh;
}

.greetings__text {
	position: absolute;
	color: white;
	width: 30vw;
	align-items: center;
	text-align: center;
	gap: 8vmin;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    margin-left: 50px;
}

.greetings__image {
	align-self: self-start;
	content: url('/img/min/ruby_landscape.webp');
	display: flex;
	width: 100%;
	height: auto
}

.greetings__text h2 {
	font-size: 3dvi;
	color: white
}

.greetings__text a {
	color: white;
	border: 2px solid white;
	font-size: 1.25dvi;
	padding: .5dvi 2.5dvi;
	border-radius: .5dvi;
	transition: .2s linear;
}

.greetings__text a:hover {
	cursor: pointer;
	background-color: rgb(255, 255, 255);
	border-color: white;
	color: black;
}

@media (max-width: 860px) {
	.greetings {
		justify-content: center;
		align-items: flex-start;
		min-height: 65vh;
	}

	.greetings__image {
		content: url('/img/min/ruby_portrait.webp');
	}

	.greetings__text h2 {
		font-size: 6dvi;
	}
	
	.greetings__text a {
		font-size: 4dvi;
		padding: 1dvi 5dvi;
		border-radius: 1dvi;
		border-width: 1px;
	}

	.greetings__text {
		margin-left: 0;
		padding-top: 12vmin;
		width: 60%;
		align-items: center;
	}
}

.why {
	position: relative;
	padding: 5em 0;
	display: flex;
	justify-content: space-evenly;
	flex-direction: column;
	align-items: center;
	min-height: calc(100vh - var(--header-height));
	gap: 3em;
}

.why .cards .card .background_image {
	position: absolute;
	z-index: -1;
	object-fit: contain;
	width: 20em;
	background: var(--var-menu-opened-color);
	backdrop-filter: blur(15px);
	-webkit-backdrop-filter: blur(15px);
	border-radius: 30px;
}

.why .cards {
	width: 100%;
	position: relative;
	display: flex;
	justify-content: center;
	gap: 3em;
	align-items: center;
	flex-flow: wrap;
}

.why .cards .cards__group {
	display: flex;
	gap: 3em;
	flex-flow: wrap;
	justify-content: center;
}

.why .cards .card {
	display: flex;
	height: 20em;
	width: 20em;
	border-radius: 30px;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	transition: box-shadow .3s ease-in-out;
	flex-shrink: 0;
	flex-grow: 0;
}

.why .cards a :hover {
	text-decoration: none;
}

.why .cards .card :hover {
	box-shadow: 0 -1px 15px 0 var(--var-shadow-color);
}

.why .cards .card .text__background :hover {
	box-shadow: none;

}

.why .cards .card h3 {
	font-size: 2em;
	text-align: center;
	color: white;
}

.why .cards .card p {
	text-align: center;
	font-size: 1.25rem;
	color: white;
}

.why .cards .card .text__background {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 20rem;
	flex-direction: column;
	background-color: #00000075;
	border-radius: 30px;
	padding: 2rem;
	gap: 2em;
}

@media (max-width: 1140px) {
	.why .cards {
		flex-direction: column;
	}
}

/* Desserts section */

.desserts {
	padding: 3rem var(--header-padding);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	gap: 2rem;
}

.desserts h2 {
	text-align: center;
}

.desserts .tags {
	padding: 0 2em;
}

.desserts__list {
	display: flex;
	flex-direction: row;
	padding: 2em 0;
	flex-basis: 3em;
	flex-flow: wrap;
	gap: 3em;
	justify-content: center;
}

.desserts__list > a {
	display: flex;
	padding: 1em;
	margin: 0;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	text-align: center;
	flex-basis: 18em;
	flex-grow: .2;
    box-shadow: 0 -1px 15px 0 var(--var-shadow-color);
	transition: box-shadow .3s ease-in-out;
}

.desserts__list > a:hover {
    box-shadow: 0 -2px 30px 0 var(--var-shadow-color);
}

.dessert__image {
	width: 100%;
	height: auto;
	border-radius: 0;
}

.desserts__list > a:hover > .dessert__image {
	text-decoration: none;
}

.dessert__title {
	width: 100%;
	font-size: 24px;
}

.dessert__title:hover,
.dessert__price:hover {
	text-decoration: none;
}

@media (max-width: 860px) {
	.desserts {
		padding: 3em 0;
		min-height: 250vh;
	}

	.desserts__list {
		justify-content: center;
	}
}

/* error page */

.error {
	display: flex;
	flex-direction: column;
	gap: 2em;
	height: calc(100vh - var(--header-height));
	align-items: center;
	text-align: center;
	justify-content: center;
}

/* dessert details */

.dessert {
	padding: 2rem var(--header-padding);
	display: flex;
	gap: 2rem;
	flex-direction: column;
	flex-wrap: wrap;
}

.dessert__details {
	display: flex;
	flex-direction: row;
	gap: 2rem;
	justify-content: center;
	flex: 0 0 70%;
	max-width: var(--content-max-width);
}

.dessert__details .dessert__info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	height: 100%;
	align-items: start;
	justify-items: center;
}

.dessert__details > .dessert__title {
	display: none;
}

.dessert .dessert__title {
	font-size: 2rem;
	text-align: left;
	position: relative;
	justify-self: start;
}

.dessert__details .swiper {
	width: 40vw;
	object-fit: cover;
	flex: 0 0 30%;
	border-radius: 0;
	box-shadow: 0 0 5px 1px var(--var-shadow-color);
	border: 1em solid var(--var-bgcolor);
}

.swiper .swiper-pagination .swiper-pagination-bullet-active{
	background-color: white;
}

.swiper .swiper-button-next, .swiper .swiper-button-prev {
	color: white;
	width: calc(30px / 44 * 27);
    height: var(30px);
}

.swiper .swiper-button-next::after, .swiper .swiper-button-prev::after {
	font-size: 30px;
}

.dessert__details .dessert__description {
	font-size: 1.5rem;
	text-align: justify;
	display: flex;
	gap: 1rem;
	flex-direction: column;
}

.dessert__details .dessert__description em {
	font-size: .85em;
}

.desserts .tags,
.dessert__details .dessert__tags {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: .5rem;
}

.desserts .tags {
	justify-content: center;
}

.desserts .tags > * > span,
.dessert__details .dessert__tags > * > span {
	border: 1px solid var(--var-color);
	padding: 0 1em;
	border-radius: 1em;
	text-decoration: none;

}

.desserts .tags .reset_tag {
	background-color: var(--var-color-hover);
}

.desserts .tags > * > span:hover,
.dessert__details .dessert__tags > * > span:hover {
	background-color: var(--var-color);
	color: var(--var-bgcolor);
	cursor: pointer;
}

.desserts .tags > * > span.tag__active {
	background-color: var(--var-color);
	color: var(--var-bgcolor);
}

.dessert__details .dessert__price > * {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

@media (max-width: 860px) {
	.dessert {
		padding: 3em;
	}

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

	.dessert__details .dessert__description {
		font-size: 1.25rem;
	}

	.dessert__details > .dessert__title,
	.dessert .dessert__title {
		font-size: 1.5rem;
		font-weight: 500;
	}

	.dessert__details > .dessert__title {
		display: inline;
		text-align: center;
	}

	.dessert__details .dessert__info .dessert__title {
		display: none;
	}

	.dessert__details .dessert__select {
		width: 100%;
	}

	.dessert__details .swiper {
		width: 80vw;
		order: 0;
	}
}

/* footer */

footer {
	display: flex;
	justify-items: center;
	text-align: center;
	padding: 3rem var(--header-padding);
	gap: 1em;
	flex-direction: column;
    box-shadow: 0 -1px 15px 0 var(--var-shadow-color);
}

footer ul {
	display: flex;
	list-style: none;
	align-self: flex-start;
	flex-direction: row;
	gap: 3em;
	padding: 1em 0;
	max-width: var(--content-max-width);
}

footer ul * {
	text-align: center;
}

footer a:hover{
	text-decoration: underline;
}

footer p {
	font-family: "Jost", sans-serif;
	text-align: center;
}

footer .disclaimer {
	font-weight: 400;
}

footer .credentials {
	text-align: center;
}

footer .issue {
	text-align: center;
}

footer .credentials .nowrap{
	text-wrap: nowrap;
}

@media (max-width: 860px) {
	footer {
		padding: 3rem;
	}

	footer ul {
		align-self: center;
		gap: 1em;
		flex-direction: column;
	}

	footer p {
		text-align: justify;
	}
}

/* Payment page */

article {
	padding: 3rem var(--header-padding);
	max-width: 75rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	text-align: justify;
	font-size: 1.5rem;
}

article * {
	width: 100%;
	font-family: "Cormorant Garamond", sans-serif;
}

article a {
	text-decoration: underline;
}

article h3 {
	font-size: 2em;
}

@media (max-width: 860px) {
	article {
		font-size: 1.25rem;
		padding: 2rem;
		align-items: center;
	}

	article h2, article h3 {
		text-align: center;
		font-size: 1.5rem;
		font-weight: 500;
	}
}

article.approach .swiper {
	width: 40vw;
}

article.approach {
	flex-direction: row;
	gap: 3rem;
}

article.approach .approach__text {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (max-width: 860px) {
	article.approach {
		flex-direction: column;
	}

	article.approach .swiper {
		width: 80vw;
	}
	
}