/* About page */

.about-page {
	color: var(--color-text);
	background: transparent;
}

.about__hero,
.about__section,
.philosophy,
.faqs,
.cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: var(--space-2xl) 0;
}

.abour-hero__container,
.about__container,
.about__qualification-container,
.philosophy__container,
.faqs__container,
.cta__container {
	width: 100%;
	max-width: 1384px;
	margin: 0 auto;
}

/* Hero */

.about__hero {
	background: var(--color-background);
	transition: background-color .6s ease;
}

.abour-hero__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

.about__sub-text {
	position: relative;
	display: inline-block;
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 500;
	font-style: normal;
	color: var(--color-text);
	cursor: default;
	transition: letter-spacing .38s ease, opacity .38s ease;
}

.sub-text {
	padding: .6rem 1rem;
	border-radius: 9999rem;
	background: #E7E1DA;
	margin-bottom: 18px;
}

.about__sub-text::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 0;
	height: 1px;
	background: currentColor;
	opacity: .4;
	transition: width .45s cubic-bezier(.25, .46, .45, .94);
}

.about__hero-title {
	position: relative;
	display: inline-block;
	width: 70%;
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--text-4xl);
	font-weight: 400;
	font-style: normal;
	line-height: 1.2;
	text-align: center;
	color: var(--color-text);
	cursor: default;
	transition: letter-spacing .45s cubic-bezier(.25, .46, .45, .94), opacity .45s ease;
}

.about__hero-descript {
	width: 60%;
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-l);
	font-weight: 500;
	font-style: normal;
	line-height: 1.6;
	text-align: center;
	color: var(--color-muted);
	opacity: .78;
	cursor: default;
	transition: opacity .4s ease, transform .4s cubic-bezier(.25, .46, .45, .94);
}

.hero__wrap-button {
	display: flex;
	flex-direction: column;
	column-gap: 1rem;
	row-gap: 2rem;
	justify-content: space-between;
}

.about__wrap-btn-hero {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	margin-top: 2rem;
}

.btn-book,
.btn-large {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .8rem 1.7rem;
	font-family: var(--font-body);
	font-size: 1.1em;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 999px;
}

.btn-book {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: var(--color-primary);
	border: 1px solid var(--color-primary);
	transition: transform .32s cubic-bezier(.25, .46, .45, .94), box-shadow .32s ease, letter-spacing .32s ease;
}

.btn-large {
	position: relative;
	overflow: hidden;
	color: var(--color-primary);
	background: transparent;
	border: 2px solid var(--color-primary);
	transition: transform .32s cubic-bezier(.25, .46, .45, .94), box-shadow .32s ease, letter-spacing .32s ease, color .4s ease, background-color .4s ease;
}

.btn-book::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.15) 50%, transparent 75%);
	transform: translateX(-100%);
	transition: transform .55s ease;
	pointer-events: none;
}

.btn-large::after {
	content: "";
	position: absolute;
	inset: 0;
	background: currentColor;
	opacity: .07;
	transform: scaleY(0);
	transform-origin: center bottom;
	transition: transform .38s cubic-bezier(.25, .46, .45, .94);
	pointer-events: none;
}

/* Journey */

.about__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: initial;
	row-gap: 3rem;
	column-gap: 0;
	padding: 0;
	list-style: none;
}

.about__wrap-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	min-width: 0;
}

.about__wrap-content--mobile {
	display: none;
}

.about__wrap-content--desktop {
	align-self: stretch;
	margin-bottom: 0;
}

.about__wrap-content--desktop > .about__wrap-media {
	position: sticky;
	top: 100px;

	align-self: center;

	margin-right: auto;
	margin-left: auto;
}

.about__wrap-media {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: auto;
	height: auto;
	overflow: visible;
	border-radius: 1.5rem;
	filter: drop-shadow(0 25px 50px rgba(0, 0, 0, .25));
}

.about__img {
	display: block;
	width: 450px;
	max-width: 100%;
	height: auto;
	border-radius: 1.5rem;
	overflow: hidden;
}

.about__wrap-text {
	width: 100%;
	padding: 2rem;
	text-align: left;
}

.about__title {
	width: 70%;
	margin: 0 0 1.5rem;
	font-family: var(--font-heading);
	font-size: var(--text-3xl);
	font-weight: 400;
	line-height: 1.2;
	color: var(--color-text);
}

.abouy__text {
	margin-bottom: 1rem;
	font-family: var(--font-body);
	font-size: var(--text-m);
	font-weight: 500;
	font-style: normal;
	font-variation-settings: "wght" 500;
	line-height: 1.6;
	color: var(--color-muted);
}

.abouy__text p {
	margin: 0 0 1rem;
}

.abouy__text p:last-child {
	margin-bottom: 0;
}

.abouy__text a {
	font: inherit;
	color: inherit;
}

.title-h3,
.title-h4 {
	width: 100%;
	margin-top: 0;
	margin-bottom: .5rem;
	font-family: var(--font-heading);
	font-weight: 400;
	text-align: left;
	color: var(--color-text);
}

.title-h3 {
	font-size: var(--text-xl);
}

.title-h4 {
	font-size: var(--text-l);
}

.about__wrap-text--specializations {
	grid-column: 1 / -1;
}

.about__qualification-container {
	margin-top: 3rem;
}

.about__wrap-block-text {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
}

.about__wrap-block-text > .about__wrap-content,
.about__wrap-block-text > .about__wrap-text {
	flex: 1 1 50%;
	min-width: 0;
}

.about__wrap-tag {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: .75rem;
	row-gap: 1rem;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.about__tag {
	display: inline-flex;
	align-items: center;
	padding: .55rem 1rem;
	font-family: var(--font-body);
	font-size: var(--text-s);
	font-weight: 400;
	line-height: 1.2;
	color: var(--color-text);
	background: var(--color-background);
	border-radius: 9999rem;
}

/* Philosophy */


.philosophy {
	background-color: var(--color-muted-soft);
}

.philosophy__container {
	display: flex;
	flex-direction: column;
}

.philosophy__wrap-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	row-gap: 1rem;
	text-align: center;
}

.philosophy__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--text-3xl);
	font-weight: 400;
	line-height: 1.2;
	color: var(--color-text);
}

.philosophy__descr {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-l);
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    color: var(--color-muted);
}

.philosophy__descr p,
.philosophy__card-descr p {
	margin: 0;
}

.philosophy__block-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: initial;
	align-content: stretch;
	column-gap: 3rem;
	row-gap: 3rem;
	margin: var(--space-xl) 0 0;
	padding: 0;
	list-style: none;
}

.philosophy__card {
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
	padding: 3rem;
	background: var(--color-card);
	border-radius: 2rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	transition: box-shadow .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.4, 0, .2, 1);
}

.philosophy__wrap-icon {
	display: flex;
	align-items: flex-start;
}

.philosophy__card-bg-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	padding: 1rem;
	background: var(--color-background);
	border-radius: 9999rem;
}

.philosophy__icon {
	display: block;
	width: 30px;
	height: 30px;
	fill: none;
	stroke: var(--color-primary);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.philosophy__wrap-card-text {
	display: flex;
	flex-direction: column;
	row-gap: 1rem;
}

.philosophy__card-title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: var(--text-l);
	font-weight: 400;
	line-height: 1.3;
	color: var(--color-text);
}

.philosophy__card-descr {
	font-family: var(--font-body);
	font-size: var(--text-m);
	font-weight: 500;
	line-height: 1.6;
	color: var(--color-muted);
}

/* =========================================================
   FAQ
========================================================= */

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

	row-gap: 1.5rem;
}


.faqs__title {
	margin: 0;

	font-family: var(--font-heading);
	font-size: var(--text-3xl);
	font-weight: 400;
	line-height: 1.2;

	color: var(--color-text);
}


.faqs__descr {
	margin: 0;

	font-family: var(--font-body);
	font-size: var(--text-l);
	font-weight: 500;
	font-variation-settings: "wght" 500;
	line-height: 1.6;

	text-align: center;

	color: var(--color-muted);
}


.faqs__wrap-shema {
	width: 60%;

	margin-top: 1.5rem;
}


.shema__faqs {
	width: 100%;
}


/* =========================================================
   FAQ ITEM
========================================================= */

.accordion-item {
	width: 100%;

	margin: 0;
}


/* =========================================================
   QUESTION
========================================================= */

.accordion-title-wrapper {
	display: block;

	width: 100%;

	margin-top: 1rem;
	padding:
		1rem
		2rem;

	font: inherit;
	text-align: left;

	color: var(--color-text);
	background: var(--color-background);

	border: 0;
	border-radius: 1rem;

	box-shadow:
		0
		2px
		4px
		rgba(0, 0, 0, 0.1);

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;

	transition:
		color
		0.3s
		ease,
		border-radius
		0.3s
		ease;
}


.accordion-title {
	display: flex;

	align-items: center;
	justify-content: space-between;

	width: 100%;

	gap: 1rem;
}


.accordion-title .title {
	flex:
		1
		1
		auto;

	font-family: var(--font-heading);
	font-size: var(--text-l);
	font-weight: 400;
	line-height: 1.35;

	color: inherit;
}


/* =========================================================
   ICON
========================================================= */

.accordion-title .icon {
	display: inline-flex;

	align-items: center;
	justify-content: center;

	flex:
		0
		0
		auto;

	width: 34px;
	height: 34px;

	color: var(--color-primary);

	transform:
		rotate(0deg);

	transition:
		transform
		0.4s
		cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


.accordion-title .icon svg {
	display: block;

	width: 30px;
	height: 30px;

	fill: none;

	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}


/* =========================================================
   ANSWER — CLOSED
========================================================= */

.accordion-content-wrapper {
	display: grid;

	grid-template-rows: 0fr;

	padding:
		0
		2.5rem;

	font-family: var(--font-body);
	font-size: var(--text-m);
	font-weight: 400;
	line-height: 1.6;

	color: var(--color-text);
	background: var(--color-background);

	border-radius:
		0
		0
		1rem
		1rem;

	opacity: 0;

	transition:
		grid-template-rows
		0.4s
		cubic-bezier(0.25, 0.46, 0.45, 0.94),
		opacity
		0.3s
		ease;
}


.accordion-content-inner {
	min-height: 0;

	overflow: hidden;
}


.accordion-content-body {
	padding:
		2rem
		0;
}


.accordion-content-body p {
	margin:
		0
		0
		1rem;
}


.accordion-content-body p:last-child {
	margin-bottom: 0;
}


/* =========================================================
   OPEN STATE
========================================================= */

.accordion-item.is-open
.accordion-title-wrapper {
	color: var(--color-muted);

	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}


.accordion-item.is-open
.accordion-content-wrapper {
	grid-template-rows: 1fr;

	opacity: 1;
}


.accordion-item.is-open
.accordion-title
.icon {
	transform:
		rotate(90deg);
}


/* =========================================================
   FOCUS
========================================================= */

.accordion-title-wrapper:focus-visible {
	outline:
		2px
		solid
		var(--color-primary);

	outline-offset: 3px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {

	.faqs__wrap-shema {
		width: 80%;
	}

}


@media (max-width: 478px) {

	.faqs__wrap-shema {
		width: 90%;
	}


	.accordion-title-wrapper {
		padding:
			1rem
			1.25rem;
	}


	.accordion-content-wrapper {
		padding:
			0
			1.5rem;
	}

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

	.accordion-title-wrapper,
	.accordion-title .icon,
	.accordion-content-wrapper {
		transition: none;
	}

}



/* CTA */

.cta {
	background-color: var(--color-background);
}

.cta__container,
.cta__wrap-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.cta__wrap-content {
	width: 100%;
	transition: transform .5s cubic-bezier(.25, .46, .45, .94);
}

.cta__title {
	display: inline-block;
	margin: 0 0 1rem;
	font-family: var(--font-heading);
	font-size: var(--text-3xl);
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	color: var(--color-text);
	cursor: default;
	transition: letter-spacing .45s cubic-bezier(.25, .46, .45, .94), opacity .45s ease;
}

.cta__descr {
	width: 60%;
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-l);
	font-weight: 500;
	font-style: normal;
	line-height: 1.6;
	text-align: center;
	color: var(--color-muted);
	opacity: .78;
	cursor: default;
	transition: opacity .4s ease, transform .4s cubic-bezier(.25, .46, .45, .94);
}

.cta__wrap-btn {
	flex-direction: row;
	align-items: center;
	justify-content: center;
	margin-top: 2rem;
}

@media (hover: hover) and (pointer: fine) {
	.about__sub-text:hover {
		letter-spacing: .12em;
		opacity: .7;
	}

	.about__sub-text:hover::after {
		width: 100%;
	}

	.about__hero-title:hover,
	.cta__title:hover {
		letter-spacing: .03em;
		opacity: .88;
	}

	.about__hero-descript:hover,
	.cta__descr:hover {
		opacity: 1;
		transform: translateX(5px);
	}

	.abour-hero__container:hover,
	.cta__wrap-content:hover {
		transform: translateY(-4px);
	}

	.btn-book:hover {
		transform: translateY(-4px);
		box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
		letter-spacing: .04em;
	}

	.btn-book:hover::before {
		transform: translateX(100%);
	}

	.btn-large:hover {
		transform: translateY(-4px);
		box-shadow: 0 10px 28px rgba(0, 0, 0, .13);
		letter-spacing: .04em;
		color: var(--color-text);
		background: var(--color-background);
	}

	.btn-large:hover::after {
		transform: scaleY(1);
	}

	.philosophy__card:hover {
		box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .10), 0 2px 4px -2px rgba(0, 0, 0, .10);
		transform: translateY(-1px);
	}
}

.btn-book:active,
.btn-large:active {
	transform: translateY(1px);
	transition-duration: .08s;
}

.btn-book:active {
	box-shadow: 0 3px 10px rgba(0, 0, 0, .14);
}

.btn-large:active {
	box-shadow: none;
}

@media (max-width: 991px) {
	.about__hero-title {
		width: 90%;
	}

	.about__wrap-content {
		width: 100%;
		margin-bottom: 2rem;
	}

	.about__wrap-text {
		width: 100%;
	}

	.about__title {
		width: 100%;
		text-align: center;
	}

	.philosophy__block-card {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.about__hero,
	.about__section,
	.philosophy,
	.faqs,
	.cta {
		padding: 4rem 17px;
	}

	.about__hero-descript {
		width: 80%;
	}

	.about__container {
		grid-template-columns: 1fr;
		row-gap: 0;
		column-gap: 0;
	}

	.about__wrap-content {
		align-self: center;
		justify-content: center;
		align-items: center;
		margin-top: var(--space-xl);
		margin-bottom: var(--space-xl);
	}

	.about__wrap-content--desktop {
		display: none;
	}

	.about__wrap-content--desktop > .about__wrap-media {
		position: static;
	}

	.about__wrap-content--mobile {
		display: flex;
	}

	.about__img {
		height: 400px;
		object-fit: cover;
	}

	.about__wrap-text {
		text-align: left;
	}

	.about__title {
		width: 100%;
		text-align: center;
	}

	.about__wrap-block-text {
		flex-direction: column;
	}

	.about__wrap-block-text > .about__wrap-content,
	.about__wrap-block-text > .about__wrap-text {
		flex-basis: auto;
		width: 100%;
	}

	.faqs__wrap-shema,
	.cta__descr {
		width: 80%;
	}
	
	.about__wrap-btn-hero {
    flex-direction: column;
	}
	
	.cta__wrap-btn {
    flex-direction: column;
	}

}

@media (max-width: 478px) {
	.about__hero-title {
		width: 100%;
	}

	.about__hero-descript {
		width: 90%;
	}

	.hero__wrap-button {
		width: 100%;
	}

	.about__wrap-btn-hero,
	.cta__wrap-btn {
		justify-content: center;
	}

	.about__wrap-text {
		padding-right: 0;
		padding-left: 0;
	}

	.philosophy__block-card {
		grid-template-columns: 1fr;
	}

	.faqs__wrap-shema {
		width: 90%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about__hero,
	.abour-hero__container,
	.about__sub-text,
	.about__sub-text::after,
	.about__hero-title,
	.about__hero-descript,
	.btn-book,
	.btn-book::before,
	.btn-large,
	.btn-large::after,
	.philosophy__card,
	.accordion-item,
	.accordion-title .icon,
	.accordion-content-wrapper,
	.cta,
	.cta__wrap-content,
	.cta__title,
	.cta__descr {
		transition: none;
	}
}
