/* Переменные */
.static-page {
	/* Цвета */
	--bg-mir-pass: #E6D8D2;
	--bg-supreme: #DDD;
	--bg-citizen: #E0F7FF;
	--bg-tourist: #FFF2D2;
	--bg-afisha: #FFFDBD;
	--bg-green-secondary: #DDF3E2;
	--bg-accent: #EEE9FF;
	--bg-gray-100: #F3F3F3;
	--Background-Black-1: #0D0D0D;
	--Color-White: #FFF;
	/* Шрифты */
	--font-family: Gotham, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
	--font-size: 16px;
	--font-weight: 400;
	--line-height: 1.4;
	/* Остальное */
	--transition: .3s ease all;
	--card-border-radius: 20px;
	--card-padding: 20px;
}

@media screen and (max-width: 767px) {
	.static-page {
		--font-size: 14px;
		--card-padding: 16px;
	}
}

.static-page {
	font-family: var(--font-family);
	font-size: var(--font-size);
	font-weight: var(--font-weight);
	line-height: var(--line-height);
	color: var(--Background-Black-1);
	padding: 24px 0 64px;
}

@media screen and (max-width: 1023px) {
	.static-page {
		max-width: 768px;
		width: 100%;
        margin: 0 auto;
	}
}

@media screen and (max-width: 767px) {
	.static-page {
		padding: 24px 0 40px;
	}
}

.title {
	margin: 0;
}

.title_type_second {
	margin-bottom: 20px;
}

@media screen and (max-width: 1023px) {
	.title_type_second {
		font-size: 32px;
	}
}

@media screen and (max-width: 767px) {
	.title_type_second {
		font-size: 24px;
	}
}

.title_type_third {
	font-size: 20px;
	line-height: 1.3;
}

@media screen and (max-width: 767px) {
	.title_type_third {
		font-size: 18px;
	}
}

.title_type_four {
	font-size: 20px;
	line-height: 1.3;
	margin-bottom: 8px;
}

@media screen and (max-width: 767px) {
	.title_type_four {
		font-size: 18px;
	}
}

.paragraph {
	margin: 0;
	font-size: 16px;
	line-height: 1.37;
}

@media screen and (max-width: 767px) {
	.paragraph {
		font-size: 14px;
		line-height: 1.43;
	}
}

.list {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

.link {
	text-decoration: none;
}

.static-page__section {
	margin-bottom: 48px;
}

.static-page__section:last-of-type {
	margin-top: 64px;
	margin-bottom: 0;
}

@media screen and (max-width: 1023px) {
	.static-page__section:last-of-type {
		margin-top: 64px;
	}
}

@media screen and (max-width: 767px) {
	.static-page__section:last-of-type {
		margin-top: 48px;
	}
}

.service-card-list {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: auto;
}

@media screen and (max-width: 1023px) {
	.service-card-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 767px) {
	.service-card-list {
		gap: 12px;
		grid-template-columns: repeat(1, 1fr);
	}
}

.service-card {
	position: relative;
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

@media screen and (max-width: 767px) {
	.service-card {
		flex-direction: row-reverse;
		justify-content: space-between;
		gap: 12px;
	}
}

.service-card, .service-other-item {
	padding: var(--card-padding);
	border-radius: var(--card-border-radius);	
	transition: var(--transition);
}

.service-card__title {
	margin-bottom: 8px;
}

@media screen and (max-width: 767px) {
	.service-card__title {
		margin-bottom: 4px;
	}
}

.service-card__image-wrapper, .service-other-item__image-wrapper {
	margin-bottom: 20px;
	padding: 4px;
	box-sizing: border-box;
	border-radius: 8px;
	background: var(--Color-White);
	display: flex;
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	justify-content: center;
	align-items: center;
	overflow: hidden;
	box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.06);
}

.service-other-item__image-wrapper {
	margin-bottom: 0;	
	padding: 8px;
}

.service-card__image, .service-other-item__image {
	display: block;
	object-fit: cover;
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}

.service-card__link, .service-other-item__link {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	opacity: 0;
	background-color: var(--Color-White);
	border-radius: var(--card-border-radius);
}

.service-card:hover {
	transform: scale(1.06);
}

.service-other-item:hover {
	transform: scale(1.04);
}

.service-other-list {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(2, 1fr);
	grid-auto-rows: auto;
}

@media screen and (max-width: 768px) {
	.service-other-list {
		gap: 12px;
		grid-template-columns: 1fr;
	}
}

.service-other-item {
	position: relative;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	background-color: var(--bg-gray-100);
	gap: 20px;
}

@media screen and (max-width: 768px) {
	.service-other-item {
		align-items: start;
	}
}

.service-other-item__content {
	flex-grow: 1;
}