:root {
	font-size: 100%;
	font-family: sans-serif;
	--white: whitesmoke;
	--black: #0a100d;
	--redish: #750d37;
	--redish--less: rgba(117, 13, 55, 0.8);
	scroll-behavior: smooth;
}
*,
::after,
::before {
	box-sizing: border-box;
}
a {
	text-decoration: none;
}
body,
figure,
h1,
h2,
h3,
img,
p,
ul {
	margin: 0;
	padding: 0;
}
img {
	object-fit: cover;
	max-height: 100%;
	max-width: 100%;
}
hr {
	margin: 2em 0;
}
#wrapper {
	width: 1024px;
	margin: 6em auto 0 auto;
	padding: 0 12px;
}
h1#header__name,
h2#header__job,
h3 {
	font-family: 'Roboto Condensed', sans-serif;
}
h1#header__name {
	font-size: 4rem;
	font-weight: 400;
}
h2#header__job {
	font-size: 1rem;
}
#header__job > strong {
	color: var(--redish);
	font-style: italic;
}
h3 {
	font-size: 2rem;
	text-align: center;
	letter-spacing: 3px;
}
p {
	font-family: 'Roboto Condensed';
	line-height: 1.33em;
}
nav a {
	font-family: 'Roboto Mono', monospace;
	color: var(--white);
	scroll-behavior: smooth;
}
nav {
	display: flex;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	color: #fff;
	background-color: var(--black);
}
nav > div {
	margin-right: 2rem;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}
nav > div > a {
	margin: 0 0.2em;
	min-width: fit-content;
}
nav > div > a:focus,
nav > div > a:hover {
	text-decoration: underline;
}
nav > div > div {
	margin-left: 1em;
}
img.flag {
	width: 3rem;
}
nav > h2 {
	margin-left: 1em;
}
header {
	text-align: center;
	margin: 2rem 0 1rem 0;
}
img.card__bio--img,
img.card__bio--img--hidden {
	position: absolute;
	border-radius: 50%;
	border: 4px solid var(--redish);
	top: 0;
	left: 0;
	transition: opacity 0.3s ease-out;
}
img.card__bio--img--hidden {
	opacity: 0;
}
figure.card__bio--figure:hover .card__bio--img--hidden {
	opacity: 1;
}
figure.card__bio--figure {
	width: 15rem;
	position: relative;
	flex-shrink: 0;
}
section.card__bio {
	background-color: var(--white);
	min-height: fit-content;
	padding: 1rem;
	display: flex;
	box-shadow: -18px -14px 0 0 var(--redish);
	max-width: 85%;
	margin: 3em auto;
}
div.card__bio--text {
	overflow: hidden;
	line-height: 1.33;
	padding: 4em 1em;
}
.card__bio--text p {
	display: block;
	overflow: hidden;
	max-width: 100%;
	max-height: 100%;
	line-height: 1.55;
	white-space: normal;
	text-overflow: ellipsis;
	font-size: 1.3rem;
	text-align: justify;
}
.card__bio--text p + p {
	margin-top: 1em;
}
.card__bio--text > p > em {
	background-color: var(--redish);
	color: var(--white);
	font-style: normal;
	padding: 0.1em 0.3em;
}
.card__bio--text b {
	display: block;
	text-align: center;
	font-size: 1.2em;
}
div.cards__services {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
}
div.cards__services > article {
	width: 300px;
	background: var(--white);
	margin: 1em;
	padding: 1em;
	box-shadow: 0.8em 0.6em var(--redish);
}
div.cards__services > article > h4 {
	text-align: center;
	padding: 0.5em 0 0.5em 0;
	font-size: 1.3rem;
	margin: 0;
}
section#rates > article {
	width: 90%;
	margin: 0 auto;
}
/* .tab {
	overflow: hidden;
	border: 1px solid #ccc;
	background-color: #f1f1f1;
	border-bottom: none;
}
.tab button {
	background-color: inherit;
	float: left;
	border: none;
	outline: 0;
	cursor: pointer;
	padding: 14px 16px;
	transition: 0.2s;
	font-size: 1.3rem;
	width: 50%;
}
.tab button:hover {
	background-color: var(--redish--less);
}
.tab button.active {
	background-color: var(--redish);
	color: #fff;
} */
.switch {
	position: relative;
	display: block;
	width: 100px;
	height: 34px;
	margin: 0 auto;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('../img/russia-big.svg');
	background-size: contain;
	background-color: #ccc;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.slider::before {
	position: absolute;
	content: '';
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .slider {
	background-image: url('../img/uk-big.jpg');
	background-size: contain;
	background-color: var(--redish);
}

input:focus + .slider {
	box-shadow: 0 0 1px var(--redish);
}

input:checked + .slider::before {
	-webkit-transform: translateX(66px);
	-ms-transform: translateX(66px);
	transform: translateX(66px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

/*  Slider TEXT */
.switch__TEXT {
	display: block;
	text-align: center;
	font-size: 1.5rem;
	margin: 0.5em 0;
}
.tabcontent {
	display: none;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-top: none;
	width: 100%;
	background-color: var(--redish);
}
.flex {
	background: var(--white);
	display: flex;
	justify-content: space-between;
}
.flex > p {
	background: var;
	width: 47%;
	padding: 1em;
}
.flex > p + p {
	border-left: 2px solid;
}
.flex > div {
	width: 1%;
	background: #000;
}
#work > article > p {
	margin: 1em;
	font-style: italic;
}
footer {
	text-align: end;
	font-size: 0.6rem;
}
footer > a {
	color: var(--redish);
	padding: 0.5rem;
}
footer:hover a,
footer > a:focus {
	background-color: var(--redish);
	color: #fff;
}
#slider {
	position: relative;
	width: 800px;
	margin: auto;
	max-width: 90vw;
}
#slider > img {
	height: 450px;
}
#slider--precedent,
#slider--suivant {
	position: absolute;
	top: 0;
	padding: 10px;
	height: 100%;
	font-size: 100px;
	display: flex;
	align-items: center;
	cursor: pointer;
	opacity: 0;
	color: var(--white);
	transition: opacity 0.2s ease-out;
}
#slider--precedent {
	left: 0;
	border-radius: 0 2em 2em 0;
}
#slider--suivant {
	right: 0;
	border-radius: 2em 0 0 2em;
}
#slider:hover #slider--precedent,
#slider:hover #slider--suivant {
	opacity: 0.6;
}
#contact > div {
	display: flex;
	justify-content: space-between;
	margin: 1em 0 2em 0;
}
#contact > div > article {
	width: 45%;
}
#contact img {
	height: 2em;
}
ul {
	list-style: none;
}
#contact ul > li + li {
	margin-top: 0.5em;
}
#contact li a {
	display: flex;
	align-items: center;
	color: #000;
}
#contact li a:focus,
#contact li a:hover {
	color: var(--redish);
	text-decoration: underline;
}
#contact article:nth-of-type(1) span {
	margin-left: 1em;
}
#contact li {
	display: flex;
	justify-content: space-between;
}
#contact h4 {
	margin-top: 0;
}
#contact article:nth-of-type(2) span {
	font-weight: 600;
}
#contact span {
	font-family: 'Roboto Condensed';
}
@media all and (max-width: 1024px) {
	#wrapper {
		max-width: 90%;
	}
	.card__bio {
		flex-direction: column;
		align-items: center;
	}
	figure.card__bio--figure {
		margin-top: 1em;
	}
	img.card__bio--img {
		position: static;
	}
	img.card__bio--img--hidden {
		top: 0;
		left: 0;
	}
	div.card__bio--text {
		padding-top: 1em;
	}
}
@media all and (max-width: 781px) {
	div.cards__services > article {
		width: 80%;
	}
}
@media all and (max-width: 500px) {
	#contact > div {
		flex-direction: column;
		align-items: center;
	}
	#contact article + article {
		margin-top: 1em;
		width: 80%;
	}
	.flex {
		flex-direction: column;
	}
	.flex > p {
		width: 90%;
		margin: 0 auto;
	}
	.flex > div {
		width: 95%;
		height: 3px;
		background: black;
		margin: 0 auto;
	}
}
@media all and (max-width: 400px) {
	#wrapper {
		padding: 0;
	}
	section.card__bio {
		max-width: 100%;
	}
	figure.card__bio--figure {
		width: 90%;
		text-align: center;
	}
	div.card__bio--text {
		padding-top: 2em;
	}
	.flex > p {
		word-break: break-word;
	}
}
@media all and (max-width: 280px) {
	#wrapper {
		margin-top: 8em;
	}
}
