@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz@0,14..32;1,14..32&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Inter', serif;
	font-weight: 400;
	font-style: normal;
}

section,
footer {
	padding: 40px 0px;
}

/* HEADER */
.wrapper-logo {
	width: 50px;
}
.logo {
	width: 100%;
	border-radius: 50%;
}

header li {
	margin-right: 15px;
	font-size: 17px;
}

.nav-link {
	color: black;
}

.banner {
	margin-top: 68px;
}

.main-info {
	position: relative;
	background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
		url('../img/1.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	width: 100%;
	height: 700px;
}

.text-banner {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: white;
	text-align: center;
	line-height: 340%;
}

/* КНОПКА ЗАКАЗАТЬ */
.btn-buy {
	display: inline-block;
	width: 130px;
	padding: 5px 0px;
	border: none;
	outline: none;
	color: #000;
	cursor: pointer;
	position: relative;
	z-index: 0;
	border-radius: 10px;
	text-decoration: none;
	font-size: 18px;
	font-weight: 500;
}

.btn-buy:before {
	content: '';
	background: linear-gradient(
		45deg,
		#ff0000,
		#ff7300,
		#fffb00,
		#48ff00,
		#00ffd5,
		#002bff,
		#7a00ff,
		#ff00c8,
		#ff0000
	);
	position: absolute;
	top: -2px;
	left: -2px;
	background-size: 400%;
	z-index: -1;
	filter: blur(5px);
	width: calc(100% + 4px);
	height: calc(100% + 4px);
	animation: glowing 20s linear infinite;
	opacity: 0;
	transition: opacity 0.4s ease-in-out;
	border-radius: 10px;
}

.btn-buy:active {
	color: #000;
}

.btn-buy:active:after {
	background: transparent;
}

.btn-buy:hover:before {
	opacity: 1;
}

.btn-buy:after {
	z-index: -1;
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background: #fff;
	left: 0;
	top: 0;
	border-radius: 10px;
}

@keyframes glowing {
	0% {
		background-position: 0 0;
	}
	50% {
		background-position: 400% 0;
	}
	100% {
		background-position: 0 0;
	}
}

/* СЕКЦИЯ УСЛУГ */
.card {
	margin: 0 auto;
	display: grid;
	place-items: center;
	width: 80vw;
	max-width: 21.875rem;
	height: 28.125rem;
	overflow: hidden;
	border-radius: 0.625rem;
	box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
	color: white;
}

.btn-more {
	display: inline-block;
	text-decoration: none;
	color: #000;
	padding: 10px 20px;
	background-color: #fff;
	border-radius: 20px;
	transition: all 0.4s ease-in-out;
}

.btn-more:hover {
	box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset,
		rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
}

.card > * {
	grid-column: 1 / 2;
	grid-row: 1 / 2;
}

.card__background {
	object-fit: cover;
	max-width: 100%;
	height: 100%;
}

.card__content {
	width: 100%;
	--flow-space: 0.9375rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-self: flex-end;
	padding: 5% 0.8rem 1.875rem;
	background: linear-gradient(
		180deg,
		hsla(0, 0%, 0%, 0) 0%,
		hsla(0, 0%, 0%, 0.3) 10%,
		hsl(0, 0%, 0%) 100%
	);
}

.card__content--container {
	--flow-space: 1.25rem;
}

.card__title {
	position: relative;
	width: fit-content;
	width: -moz-fit-content; /* Prefijo necesario para Firefox  */
}

.card__title::after {
	content: '';
	position: absolute;
	height: 0.3125rem;
	width: calc(100% + 1.25rem);
	bottom: calc((1.25rem - 0.5rem) * -1);
	left: -1.25rem;
}

.card__button {
	padding: 0.75em 1.6em;
	width: fit-content;
	width: -moz-fit-content; /* Prefijo necesario para Firefox  */
	font-variant: small-caps;
	font-weight: bold;
	border-radius: 0.45em;
	border: none;
	background-color: var(--brand-color);
	font-family: var(--font-title);
	font-size: 1.125rem;
	color: var(--black);
}

.card__button:focus {
	outline: 2px solid black;
	outline-offset: -5px;
}

@media (any-hover: hover) and (any-pointer: fine) {
	.card__content {
		transform: translateY(62%);
		transition: transform 500ms ease-out;
		transition-delay: 500ms;
	}

	.card__title::after {
		opacity: 0;
		transform: scaleX(0);
		transition: opacity 1000ms ease-in, transform 500ms ease-out;
		transition-delay: 500ms;
		transform-origin: right;
	}

	.card__background {
		transition: transform 500ms ease-in;
	}

	.card__content--container > :not(.card__title),
	.card__button {
		opacity: 0;
		transition: transform 500ms ease-out, opacity 500ms ease-out;
	}

	.card:hover,
	.card:focus-within {
		transform: scale(1.05);
		transition: transform 500ms ease-in;
	}

	.card:hover .card__content,
	.card:focus-within .card__content {
		transform: translateY(0);
		transition: transform 500ms ease-in;
	}

	.card:focus-within .card__content {
		transition-duration: 0ms;
	}

	.card:hover .card__background,
	.card:focus-within .card__background {
		transform: scale(1.3);
	}

	.card:hover .card__content--container > :not(.card__title),
	.card:hover .card__button,
	.card:focus-within .card__content--container > :not(.card__title),
	.card:focus-within .card__button {
		opacity: 1;
		transition: opacity 500ms ease-in;
		transition-delay: 1000ms;
	}

	.card:hover .card__title::after,
	.card:focus-within .card__title::after {
		opacity: 1;
		transform: scaleX(1);
		transform-origin: left;
		transition: opacity 500ms ease-in, transform 500ms ease-in;
		transition-delay: 500ms;
	}
}

/* СЛАЙДЕР */
.splitview {
	position: relative;
	width: 100%;
	min-height: 45vw;
	overflow: hidden;
}

.panel {
	position: absolute;
	width: 100vw;
	min-height: 45vw;
	overflow: hidden;
}

.panel .content {
	position: absolute;
	width: 100vw;
	min-height: 45vw;
	color: #fff;
}

.panel .description {
	width: 25%;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	text-align: center;
}

.panel img {
	box-shadow: 0 0 20px 20px rgba(0, 0, 0, 0.15);
	width: 35%;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.bottom {
	background-color: rgb(44, 44, 44);
	z-index: 1;
}

.bottom .description {
	right: 5%;
	line-height: 200%;
	font-size: 18px;
}

.top {
	background-color: rgb(77, 69, 173);
	z-index: 2;
	width: 50vw;
}

.top .description {
	left: 5%;
	line-height: 200%;
	font-size: 18px;
}

/* Handle. */
.handle {
	height: 100%;
	position: absolute;
	display: block;
	background-color: rgb(253, 171, 0);
	width: 5px;
	top: 0;
	left: 50%;
	z-index: 3;
}

/* Skewed. */
.skewed .handle {
	top: 50%;
	transform: rotate(30deg) translateY(-50%);
	height: 200%;
	-webkit-transform-origin: top;
	-moz-transform-origin: top;
	transform-origin: top;
}

.skewed .top {
	transform: skew(-30deg);
	margin-left: -1000px;
	width: calc(50vw + 1000px);
}

.skewed .top .content {
	transform: skew(30deg);
	margin-left: 1000px;
}

.wrapper-img img {
	max-width: 290px;
	max-height: 350px;
	width: 100%;
	height: 100%;
}

/* footer */

footer {
	color: grey;
}

footer a {
	text-decoration: none;
	color: #000;
	display: inline-block;
	transition: all 0.3s ease-in-out;
	font-size: 16px;
}

.footer-gray {
	font-size: 16px;
}

footer a:hover {
	color: gray;
}

footer li {
	list-style: none;
}

.footer-title {
	width: 200px;
}

.wrapper-footer-logo {
	max-width: 50px;
	width: 100%;
}

/* Responsive. */
@media (max-width: 900px) {
	body {
		font-size: 75%;
	}
	.text-banner {
		font-size: 14px;
	}
	.bottom .description {
		font-size: 16px;
	}
	.top .description {
		font-size: 16px;
	}
	.btn-more {
		padding: 5px 10px;
	}
}

@media (min-width: 0px) and (max-width: 992px) {
	.text-banner h1 {
		font-size: 20px;
	}

	.text-banner p {
		font-size: 17px !important;
	}

	.wrapper-img {
		display: none;
	}
}

@media (max-width: 768px) {
	.card {
		font-size: 14px;
	}
	.text-banner {
		max-width: 350px;
		width: 100%;
		font-size: 10px;
	}
	.slider-block {
		display: none;
	}
}
