/* SEO-текст: сіра картка - ліворуч картинка (формою «листка») з жовтим колом і кнопка, праворуч заголовок і текст
   зі скролом (скролиться вся права колонка разом із заголовком). Макет Figma «SEO text block». */
.seo-text {
	padding-top: 40px;
	padding-bottom: 60px;
}

.seo-text__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	grid-template-areas:
		"media content"
		"btn content";
	grid-template-rows: auto 1fr;
	column-gap: 56px;
	row-gap: 28px;
	align-items: start;
	padding: 48px 40px 48px 0;
	background: #F4F4F6;
	border-radius: 30px;
	overflow: hidden;
}

.seo-text__media {
	grid-area: media;
	position: relative;
	aspect-ratio: 1 / 0.92;
}

.seo-text__image {
	position: absolute;
	top: 0;
	right: 0;
	width: 76%;
	height: 100%;
	border-radius: 120px 16px 120px 120px;
	background: 50% no-repeat;
	background-size: cover;
}

.seo-text__shape {
	position: absolute;
	top: 0;
	left: -52%;
	height: 100%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #FDF13C;
}

.seo-text__content {
	grid-area: content;
	max-height: 460px;
	overflow-y: auto;
	padding-right: 28px;
	scrollbar-width: thin;
	scrollbar-color: #4C65FF #FFFFFF;
}

.seo-text__content::-webkit-scrollbar {
	width: 4px;
}

.seo-text__content::-webkit-scrollbar-track {
	background: #FFFFFF;
	border-radius: 2px;
}

.seo-text__content::-webkit-scrollbar-thumb {
	background: #4C65FF;
	border-radius: 2px;
}

.seo-text__content::-webkit-scrollbar-button {
	display: none;
}

.seo-text__content:focus-visible {
	outline: 2px solid #4C65FF;
	outline-offset: 4px;
}

.seo-text__title {
	margin: 0 0 24px;
}

.seo-text__text {
	font-size: 15px;
	line-height: 1.6;
}

.seo-text__text p {
	margin: 0 0 14px;
}

.seo-text__text h3,
.seo-text__text h4 {
	margin: 26px 0 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.seo-text__btn {
	grid-area: btn;
	justify-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 76%;
	height: 56px;
	padding: 0 32px;
	border-radius: 999px;
	background: #4C65FF;
	color: #FFFFFF;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s ease;
}

.seo-text__btn:hover {
	background: #3A52EA;
	color: #FFFFFF;
}

.seo-text__btn:focus-visible {
	outline: 3px solid #FDF13C;
	outline-offset: 2px;
}

@media only screen and (max-width: 1366px) {
	.seo-text__card {
		column-gap: 36px;
	}
}

@media only screen and (max-width: 1024px) {
	.seo-text {
		padding-top: 30px;
		padding-bottom: 40px;
	}

	.seo-text__card {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"media"
			"content"
			"btn";
		grid-template-rows: auto;
		row-gap: 28px;
		padding: 0 0 36px;
	}

	.seo-text__media {
		width: min(100%, 440px);
		margin-left: auto;
		margin-right: 0;
	}

	.seo-text__content {
		max-height: 420px;
		margin: 0 24px;
		padding-right: 20px;
	}
}

@media only screen and (max-width: 760px) {
	.seo-text {
		padding-top: 20px;
		padding-bottom: 30px;
	}

	.seo-text__card {
		border-radius: 24px;
	}

	.seo-text__media {
		width: 100%;
	}

	.seo-text__image {
		border-radius: 90px 14px 90px 90px;
	}

	.seo-text__content {
		margin: 0 16px;
		max-height: 380px;
	}

	.seo-text__btn {
		min-width: 70%;
	}
}
