/* Specialties page */
.wrapper {
	max-width: 1200px;
	margin: auto;
}

h1 {
	font-size: 2.5rem;
	line-height: 1.2;
}
h1 span {
	font-size: 5rem;
	color: #BE8E9E;
	font-family: 'Bathilda', sans-serif;
	word-spacing: -1.5rem;
}
h2 {
	text-transform: uppercase;
	font-size: 2rem;
	font-weight: 600;
	margin:  0;
}
h3 {
	margin: 0;
}

#specialties {
	display: grid;
	grid-template-columns: auto auto auto;
	grid-column-gap: 4rem;
	grid-row-gap: 2rem;
	margin:  6rem auto;
}
#specialties .icon {
	background: #5E2B80;
	border-radius: 5rem;
	padding: 1rem;
	width:  4rem;
	height: 4rem;
	box-sizing: border-box;
	position: absolute;
	left:  -2rem;
	top:  0;
}
#specialties .service {
	background: #E8DEEA;
	border-radius: 1rem;
	box-shadow: 0 0 #000;
	padding:  1rem 4rem;
	position: relative;
	max-height: 2rem;
	height:  2rem;
	transition:  .5s;
	margin-bottom: 2rem;
	cursor: pointer;
}
#specialties .inner {
	list-style: none;
	padding:  0;
	opacity: 0;
	cursor: default;
}
#specialties .service.open {
	height:  auto;
	max-height: 1000px;
}
#specialties .service.open .inner {
	opacity: 1;
}
#specialties > div:nth-child(1) > div:nth-child(4) > div.icon > img {
	max-height: 2rem;
	margin: auto;
	display: block;
}
@media(max-width: 1260px) {
	#specialties {
		padding: 0 4rem;
	}
}
@media(max-width: 1114px) {
	#specialties > div:nth-child(2) > div:nth-child(3):not(.open) {
		height: 3.5rem;
		max-height: 3.5rem;
	}
}
@media(max-width: 1031px) {
	#specialties > div:nth-child(1) > div:nth-child(4):not(.open) {
		height: 3.5rem;
		max-height: 3.5rem;
	}
}
@media(max-width: 984px) {
	#specialties > div:nth-child(2) > div:nth-child(3):not(.open) {
		height: 5rem;
		max-height: 5rem;
	}
}
@media(max-width: 760px) {
	#specialties {
		padding: 0 1rem;
		margin-left: 2rem;
		margin-top: 2rem;
		grid-template-columns: auto;
		grid-gap: 0;
	}
	#specialties > div:nth-child(1) > div:nth-child(4):not(.open), #specialties > div:nth-child(2) > div:nth-child(3):not(.open) {
		height:  2rem;
		max-height: 2rem;
	}
}
@media(max-width: 480px) {
	#specialties > div:nth-child(1) > div:nth-child(4):not(.open), #specialties > div:nth-child(2) > div:nth-child(3):not(.open) {
		height:  3.5rem;
		max-height: 3.5rem;
	}
	#specialties .service {
		max-width:  calc(100vw - 12rem);
	}
}
@media(max-width: 410px) {
	#specialties > div:nth-child(2) > div:nth-child(3):not(.open) {
		height:  5rem;
		max-height: 5rem;
	}
}