html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Onest', sans-serif;
	margin: 0;
	padding: 0;
	background: #FFFFF2;
}

* {
	box-sizing: border-box;
}

@font-face {
	font-weight: 800;
	font-family: Bitter;
	src: url("fonts/Bitter-ExtraBold.ttf");
}

@font-face {
  font-weight: 400;
  font-family: Onest;
  src: url("fonts/OnestRegular1602-hint.ttf");
}

@font-face {
  font-weight: 500;
  font-family: Onest;
  src: url("fonts/OnestMedium1602-hint.ttf");
}

h1, h2, h3, h4, h5 {
	font-weight: 800;
	font-family: Bitter;
	line-height: 100%;
	color: #19190F;
	margin: 0;
	padding: 0;
}

h2 {
	font-size: 48px;
}

ul, li {
	list-style: none;
	text-decoration: none;
	font-weight: 400;
	padding-inline-start: 0;
	margin: 0;
	padding: 0;
}

p {
	font-weight: 400;
	font-size: 20px;
	line-height: 150%;
	color: #19190F;
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
	font-weight: 400;
	font-size: 20px;
	color: #19190F;
	margin: 0;
	padding: 0;
}

button {
	margin: 0;
	padding: 0;
	text-decoration: none;
	border: none;
}

.container {
	padding: 0;
	margin: 0 auto;
}

section, header, footer {
	padding-right: 50px;
	padding-left: 50px;
}

.btn {
	color: #4C4C2E;
	padding: 20px 30px;
	font-family: Bitter;
	font-weight: 800;
	font-size: 18px;
	border-radius: 10px;
	background: #E5E5CF;
	transition: background .3s ease;
}

/*----------------------POPUP SECTION START-----------------*/
.popup__bg, .card-popup__bg-1, .card-popup__bg-2, .card-popup__bg-3, 
.card-popup__bg-4, .card-popup__bg-5, .card-popup__bg-6,
.card-popup__bg-7, .card-popup__bg-8, .card-popup__bg-9 {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 110vh;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none; 
    transition: 0.5s all;
}

.popup__bg.active, .card-popup__bg-1.active, .card-popup__bg-2.active, .card-popup__bg-3.active,
 .card-popup__bg-4.active, .card-popup__bg-5.active, .card-popup__bg-6.active,
  .card-popup__bg-7.active, .card-popup__bg-8.active, .card-popup__bg-9.active { 
    opacity: 1; 
    pointer-events: all; 
    transition: 0.5s all;
}

.popup, .card-popup-1, .card-popup-2, .card-popup-3,
 .card-popup-4, .card-popup-5, .card-popup-6,
  .card-popup-7, .card-popup-8, .card-popup-9 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); 
    background: #FFFFF2;
    width: 1000px;
    height: 660px;
    border-radius: 10px;
    transition: 0.5s all;
}

.popup.active, .card-popup-1.active, .card-popup-2.active, .card-popup-3.active,
 .card-popup-4.active, .card-popup-5.active, .card-popup-6.active,
  .card-popup-7.active, .card-popup-8.active, .card-popup-9.active { 
    transform: translate(-50%, -50%) scale(1);
    transition: 0.5s all;
}

.close-popup, .close-popup-1, .close-popup-2, .close-popup-3,
 .close-popup-4, .close-popup-5, .close-popup-6,
  .close-popup-7, .close-popup-8, .close-popup-9 {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.popup-wrapper {
	display: flex;
	align-items: center;
	padding: 10px;
}

.popup-text-wrapper {
	margin-left: 50px;
}

.popup-title {
	margin: auto;
	margin-bottom: 20px;
	display: block;
	max-width: max-content;
}

.popup-text-scroll {
	height: 420px;
	padding: 20px;
	width: 530px;
	background: #F2F2E4;
	overflow: auto;
	border-radius: 20px;
}

.popup-text-scroll p {
	font-size: 18px;
}

.popup-text-scroll::-webkit-scrollbar {
  width: 4px;
  height: 12px;
}

.popup-text-scroll::-webkit-scrollbar-track {
  background: #FFFFF2;
  opacity: 0;
}

.popup-text-scroll::-webkit-scrollbar-thumb {
  background-color: #4C4C2E; 
  border-radius: 20px;       
  border: none;  
  width: 4px;
  height: 12px;
}

.popup-text:not(:last-child) {
	margin-bottom: 15px;
}

.popup-btn {
	margin-top: 20px;
	background: #A64CFF;
	color: #fff;
}

.popup-btn:hover {
	background: #853DCC;
	transition: background .3s ease;
}
/*----------------------POPUP SECTION END-----------------*/
/*----------------------HEADER SECTION START-----------------*/
.header {
	position: fixed;
	margin: auto;
	left:0;
	right:0;
	z-index: 4;
	background: #FFFFF2;
	padding-top: 12px;
	padding-bottom: 12px;
}

.container-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.menu-list {
	display: flex;
	justify-content: space-between;
	width: 375px;
}

.btn-header:hover, .learn-more-btn:hover  {
	background: #CCCCB8;
}

.mobile-menu {
	display: none;
	background: none;
}

.mobile-menu-btn {
	display: none;
	background: none;
}
/*----------------------HEADER SECTION END-----------------*/
/*----------------------OFFER SECTION START-----------------*/
.offer {
	padding-top: 80px;
}

.container-offer {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.offer-title {
	font-size: 96px;
	width: 745px;
}

.offer-text {
	width: 470px;
	margin: 50px 0 78px;
}

.btn-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 465px;
}

.help-btn {
	background: #A64CFF;
	color: #fff;
}

.help-btn:hover {
	background: #853DCC;
	transition: background .3s ease;
}

.img-wrapper {
	height: 800px;
}

.maria-mask {
	display: none;
}

.img-desc {
	background: #F2F2E4;
	border-radius: 10px;
	display: block;
	max-width: max-content;
	padding: 12px 20px;
	position: relative;
	transform: rotate(5deg);
	bottom: 171px;
    left: 155px;
}

.img-desc p {
	display: block;
	max-width: max-content;
	font-size: 18px;
}

.desc-title {
	font-weight: 500;
	color: #19190F;
}

.desc-text {
	color: #4C4C2E;
}
/*----------------------OFFER SECTION END-----------------*/
/*----------------------ASTROLOGY SECTION START-----------------*/
.container-astrology {
	display: flex;
	background: #F2F2E4;
	border-radius: 30px;
	justify-content: space-between;
	align-items: center;
	padding: 10px 10px 10px 50px;
}

.astrology-text-wrapper {
	width: 805px;
}

.astrology-title {
	margin-bottom: 20px;
}

.astrology-text:not(:last-child) {
	margin-bottom: 20px;
}


.astrology-candle-2 {
		display: none;
		margin-left: 20px;
		border-radius: 10px 20px 20px 10px;
	}

.astrology-candle {
	margin-left: 20px;
}
/*----------------------ASTROLOGY SECTION END-----------------*/
/*----------------------SERVICES SECTION START-----------------*/
.services {
	padding-top: 70px;
	padding-bottom: 60px;
}

.services-title {
	margin-bottom: 40px;
}

.services-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-content: space-between;
    height: 850px;
}

.services-item {
	width: 480px;
	height: 260px;
	border-radius: 30px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.30) 100%), url('../img/card.png'), lightgray 50% / cover no-repeat;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: center;
	text-align: left;
	transition: background .3s ease;
}

.services-item:hover {
	opacity: 0.8;
	transition: background .3s ease;
	transition: opacity .3s ease;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.30) 100%), url('../img/card.png'), lightgray 50% / cover no-repeat;
}

.services-item p {
	font-size: 36px;
	font-weight: 800;
	color: #fff;
	text-align: left;
	display: block;
	width: 380px;
	height: max-content;
}
/*----------------------SERVICES SECTION END-----------------*/
/*----------------------PRESENTS SECTION START-----------------*/
.container-presents {
	display: flex;
	background: #F2F2E4;
	border-radius: 30px;
	justify-content: space-between;
	align-items: center;
	padding: 10px 10px 10px 50px;
}

.presents-text-wrapper {
	width: 805px;
}

.presents-title {
	margin-bottom: 20px;
}

.presents-text:not(:last-child) {
	margin-bottom: 20px;
}

.prenets-img {
	width: 38vw;
	height: 72vh;
	border-radius: 30px;
	background: url('../img/presents-img.png') center center / cover;
}
/*----------------------PRESENTS SECTION END-----------------*/
/*----------------------REVIEWS SECTION START-----------------*/
.reviews {
	padding-top: 60px;
}

.reviews-title {
	margin-bottom: 40px;
}

.swiper {
  width: 100%;
  height: max-content;
}

.swiper-slide {
	padding: 50px;
	background: #F2F2E4;
	border-radius: 30px;
}

.person {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.person-img {
	margin-right: 20px;
}

.review-text {
	height: 136px;
	width: 380px;
}
/*----------------------REVIEWS SECTION END-----------------*/
/*----------------------CONTACTS SECTION START-----------------*/
.contacts {
	padding-top: 60px;
	padding-bottom: 60px;
}

.container-contacts {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.contacts-wrapper a, .contacts-wrapper p {
	color: #fff;
}

.contacts-wrapper {
	padding: 50px;
	background: #A64CFF;
	border-radius: 30px;
	width: 740px;
	height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.tel-num {
	font-weight: 800;
	font-size: 48px;
	font-family: Bitter;
}

.tel-text {
	font-weight: 500;
	font-size: 18px;
}

.inst-mail {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mail {
	font-family: Bitter;
	font-size: 24px;
	font-weight: 800;
}

.contacts-desc-wrapper {
	padding: 50px;
	background: #F2F2E4;
	border-radius: 30px;
	width: 740px;
	height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.contacts-desc-title {
	margin-bottom: 20px;
}
/*----------------------CONTACTS SECTION END-----------------*/
/*----------------------FOOTER SECTION START-----------------*/
.footer {
	padding-bottom: 50px;
	padding-top: 50px;
	background: #F2F2E4;
}

.logo-footer {
	margin-bottom: 62px;
}

.footer-contacts-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer-tel a, .footer-tel p, .mail-footer {
	color: #4C4C2E;
}

.inst-footer {
	display: block;
	margin-bottom: 20px;
	margin-left: auto;
}

.inst-link {
	display: block;
	width: max-content;
	height: max-content;
	margin-left: auto;
}

/*----------------------FOOTER SECTION END-----------------*/
/*----------------------MEDIA START-----------------*/

@media (min-width: 2000px) {
	body, header {
		width: 1920px;
		margin: 0 auto;
	}
}

@media (max-width: 1670px) {
	.img-wrapper {
		position: relative;
    	left: -170px;
	}
}
@media (max-width: 1545px) {
	.services-item {
		width: 435px;
	}

	.services-list {
		justify-content: space-around;
		align-content: space-around;
	}

	.contacts-wrapper, .contacts-desc-wrapper {
		width: 44vw;
		height: 520px;
	}

}

@media (max-width: 1460px) {
	.offer {
			padding-right: 0;
		}

	.offer-title {
		font-size: 64px;
		width: 500px;
	}

	.maria {
		width: 100%;
    	height: 100%;
		position: relative;
   		z-index: 0;
	}

	.img-wrapper {
		height: 627px;
    	width: 600px;
	}

	.img-desc {
		left: 85px;
		bottom: 122px;
	}

	.services-list {
		height: 1400px;

	}

	.astrology {
		padding: 0;
	}

	.presents {
		padding: 0;
	}

	.contacts-wrapper, .contacts-desc-wrapper {
		width: 49vw;
	}

	.contacts {
		padding-left: 0;
		padding-right: 0;
	}
}
	
@media (max-width: 1200px) {
	.img-wrapper {
		position: relative;
    	left: -100px;
	}

	.popup, .card-popup-1, .card-popup-2, .card-popup-3,
 .card-popup-4, .card-popup-5, .card-popup-6,
  .card-popup-7, .card-popup-8, .card-popup-9  {
		width: 900px;
		height: 600px;
	}

	.popup-text-scroll {
		width: 430px;
		height: 320px;
	}

	.candle-popup {
		width: 380px;
		height: 580px;
	}

	.astrology-candle {
		display: none;
	}

	.astrology-candle-2 {
		display: block;
		width: 350px;
		height: 515px;
	}

	.astrology-text-wrapper {
		width: 550px;
	}
}

@media (max-width: 1000px) {

	.offer-title {
		font-size: 48px;
		width: 360px;
	}

	h2, h3, h4 {
		font-size: 36px;
	}

	p {
		font-size: 18px;
	}

	button {
		display: block;
	}

	.btn {
		width: 227px;
		height: 57px;
	}

	.btn-wrapper {
		display: block;
		width: 240px;
	}

	.learn-more-btn {
		margin-top: 10px;
	}

	.img-desc {
		left: 90px;
	}

	.offer-text {
		margin-top: 27px;
		margin-bottom: 67px;
		width: 405px;
	}
}

@media (max-width: 969px) {
	.popup, .card-popup-1, .card-popup-2, .card-popup-3,
 .card-popup-4, .card-popup-5, .card-popup-6,
  .card-popup-7, .card-popup-8, .card-popup-9  {
		width: 670px;
		height: 650px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.popup-text-scroll {
		width: 560px;
		height: 440px;
	}

	.candle-popup {
		display: none;
	}

	.popup-text-wrapper {
		margin-left: 0;
	}

	.services-list {
    height: 180vh;
	}

	.services-item {
		width: 41vw;
    	height: 32vh;
	}

	.services-item p {
		font-size: 24px;
		display: block;
		width: 225px;
	}

	.container-contacts {
		flex-wrap: wrap;
		flex-direction: column-reverse;
	}

	.contacts-wrapper, .contacts-desc-wrapper {
		width: 100%;
	}

	.contacts-desc-wrapper {
		height: 400px;
	}

	.contacts-wrapper {
		height: 290px;
	}
}

@media (max-width: 905px) {
	.img-wrapper {
    left: -155px;
}

.maria {
	width: 136%;
}

.menu, .btn-header {
		display: none;
	}

	.mobile-menu .menu-list {
		display: block;
		width: auto;
	}

	.mobile-menu.active {
		display: block;
		position: fixed;
		z-index: 10;
		background: #F2F2E4;
		top: 11%;
    	right: 5%;
    	width: 230px;
    	padding: 15px;
    	border-radius: 30px;
	}

	.menu-item {
		display: block;
	}

	.menu-item  .btn-header {
		display: block;
		padding: 0;
		width: 100%;
	}

	.menu-item:not(:last-child) {
		margin-bottom: 10px;
	}

	.menu-link {
		display: block;
		max-width: max-content;
		margin: 0 auto;
	}

	.mobile-menu-btn {
		display: block;
	}
}

@media (max-width: 768px) {
	.popup, .card-popup-1, .card-popup-2, .card-popup-3,
 .card-popup-4, .card-popup-5, .card-popup-6,
  .card-popup-7, .card-popup-8, .card-popup-9  {
		width: 340px;
		height: 680px;
	}

	.popup-text-scroll {
		width: 320px;
		height: 455px;
	}

	.popup-btn {
		width: 100%;
	}

	.offer {
		padding-right: 50px;
		padding-bottom: 25px;
	}

	.container-offer {
		flex-direction: column-reverse;
		align-items: stretch;
		position: relative;
	}

	.maria, .img-wrapper {
		display: none;
	}

	.maria-mask {
		display: block;
		margin-bottom: 10px;
	}

	.container-astrology, .container-presents {
		padding: 50px;
	}

	.astrology-candle-2, .prenets-img  {
		display: none;
	}

	.img-desc {
		top: 50%;
		right: 0;
		bottom: 0;
		left: 6%;
		width: 210px;
		height: 85px;
		position: absolute;
	}

	.btn-wrapper, .open-popup, .learn-more-btn {
		width: 100%;
	}

	.offer-title, .offer-text {
		width: auto;
	}

	.img-desc p {
		font-size: 14px;
	}
	
}

@media (max-width: 640px) {

	.offer-title {
		font-size: 36px;
	}

	p {
		font-size: 16px;
	}

	section, header, footer, .offer {
    	padding-right: 20px;
    	padding-left: 20px;
	}

	.offer-text {
		margin-bottom: 20px;
		margin-top: 20px;
	}

	.container-astrology, .container-presents {
		padding: 20px;
	}

	.reviews {
		padding: 30px 10px 0 10px;
	}

	.reviews-title {
		margin-bottom: 20px;
	}

	.swiper-slide {
		padding: 20px;
	}

	.review-text {
		height: 96px;
	}

	.services {
		padding-top: 40px;
	}

	.services-title {
		margin-bottom: 20px;
	}

	.services-list {
   	 	height: 148vh;
	}


	.services-item {
	    width: 42vw;
   		height: 28vh;
	}	

	.services-item p {
		text-align: center;
		font-size: 18px;
		width: 180px;
	}

	.review-text {
		width: auto;
	}

	.swiper-button-next {
		display: none;
	}

	.services-item {
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.30) 100%), url('../img/card-mobile.png'), lightgray 50% / cover no-repeat;
		background-size: cover;
	}

	.services-item:hover {
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.30) 0%, rgba(0, 0, 0, 0.30) 100%), url('../img/card-mobile.png'), lightgray 50% / cover no-repeat;
		background-size: cover;
	}


	.services-item p {
		font-family: Onest;
	}

	.contacts {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.contacts-wrapper {
		height: 180px;
		padding: 20px;
	}

	.contacts-desc-wrapper {
		padding: 20px;
	}

	.mail {
		font-size: 18px;
	}

	.tel-num, .footer-tel a {
		font-size: 36px;
	}

	.footer-contacts-wrapper {
		display: block;
	}

	.inst-link {
		margin-left: 0;
		margin-top: 35px;
		margin-bottom: 10px;
	}

	.inst-footer {
		margin: 0;
	}
}

@media (max-width: 445px) {
	.img-desc {
		top: 40%;
	}
}

@media (max-width: 390px) {
	h2 {
		font-size: 24px;
	}
}