/* GRID */

.s-grid {
	font-family: Segoe UI, sans-serif;
	font-size: 20px;
	font-weight: 400;
	padding: 80px 0 100px;
	position: relative;
	background-color: #fff;
}

.search-container {
  position: relative;
  max-width: 552px;
  width: 100%;
  margin: 0 auto 20px;
}

.search-container input {
  display: block;
  width: 100%;
  padding: 12px 20px;
  font-size: 16px;
  line-height: 1.2;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #333;
  transition: box-shadow 0.2s ease;
}

.search-container input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 100, 200, 0.2);
}

.search-container input::placeholder {
  color: #999;
}

.s-grid__wrapper {
	display: flex;
	flex-flow: column;
}

.s-grid__inner {
	display: flex;
	flex-flow: column;
	grid-row-gap: 24px;
}

.s-grid__title {
	font-weight: 700;
	font-size: 36px;
	color: #050A23;
	letter-spacing: -.025em;
	line-height: 40px;
	text-align: center;
}

.s-grid__text {
	font-size: 18px;
	font-weight: 400;
	letter-spacing: -.025em;
	line-height: 1.625;
	text-align: center;
	color: #050A23;
	margin-bottom: 32px;
	margin-right: auto;
	margin-left: auto;
}

.s-grid__btn-list {
	transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: 40px;
}

.s-grid__btn {
	display: flex;
  text-align: center;
  justify-content: center;
	width: 100%;
  max-width: 200px;
  height: auto;
	padding: 12px 24px;
	font-size: 16px;
	background: #fff;
	transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
	font-weight: 600;
	border-radius: 12px;
	border: 2px solid rgb(229 231 235);
	box-shadow: rgba(154, 0, 247, .1), 0 4px 6px -4px rgba(154, 0, 247, .1);
}

.s-grid__btn:hover {
	color: rgb(154 0 247);
	border-color: rgb(154 0 247);
	transform: translateY(-2px);
}

.s-grid__btn.active {
	color: #fff;
	background: rgb(154 0 247);
	border: 2px solid rgb(154 0 247);
}

.s-grid__btn.active:hover {
	color: rgb(154 0 247);
	border-color: rgb(154 0 247);
	transform: translateY(-2px);
	background-color: #fff;
}

.s-grid__products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

.s-grid__product-item {
  cursor: pointer;
	padding: 32px;
	display: flex;
	flex-flow: column;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.08);
	border-radius: 24px;
	transition: all .3s ease-out;
	width: 100%;
}

.s-grid__product-item:hover {
	transform: scale(1.03);

}

.s-grid__product-item.rosy-petal {
	background: #efc0c1;
}

.s-grid__product-item.powdered-lilac {
	background: #dfd5e3;
}

.s-grid__product-item.seafoam {
	background: #c7dcd4;
}

.s-grid__product-item.ivory {
	background: #f8f6e7;
}

.s-grid__product-item.cool-mist {
	background: #cdd3da;
}

.s-grid__product-item.light-pink {
	background: #f5e5e9;
}

.s-grid__product-item.light-orange {
	background: #ffdca6;
}

.s-grid__product-item.lightest-green {
	background: #d6e8dd;
}

.s-grid__product-item.pale-gray-blue {
	background: #d4dddf;
}

.s-grid__product-item.olive {
	background: #c6c1af;
}

.s-grid__product-item.green {
	background: #d6e8dd;
}

.s-grid__product-item.lightest-blue {
	background: #d9edf3;
}

.s-grid__product-item.beige {
	background: #f6ecdc;
}

.s-grid__product-item.light-beige {
	background: #f7f9c3;
}

.s-grid__product-item.light-yellow {
	background: #fffced;
}

.s-grid__product-item.pink {
	background: #fedff8;
}

.s-grid__product-item.light-purple {
	background: #d7d1ee;
}

.s-grid__product-item.celadon-green {
	background: #dde3d1;
}

.s-grid__product-item.lavender-mist {
	background: #c9d0e5;
}

.s-grid__product-item.flesh {
	background: #f6dcca;
}

.s-grid__product-item.light-gray {
	background: #c9cbcf;
}

.s-grid__product-item.deep-pink {
	background: #d4d3e2;
}

.s-grid__product-item.light-blue {
	background: #d9edf3;
}

.s-grid__product-item.soft-violet {
	background: #f5f5ff;
}

.s-grid__product-item.blue-gray {
	background: #cdd3da;
}

.s-grid__product-item.light-green {
	background: #c8d4bc;
}

.s-grid__product-logo-w-title {
	display: flex;
	flex-flow: row;
	align-items: center;
	margin-bottom: 24px;
	gap: 16px;
}

.s-grid__product-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: 56px;
}

.s-grid__product-title {
	letter-spacing: -.025em;
	font-weight: 700;
	font-size: 20px;
	color: #050A23;
}

.s-grid__product-text {
	margin-bottom: 32px;
	line-height: 1.625;
	color: #000;
	font-size: 16px;
}

.s-grid__product-link {
	transition: all 0.2s ease-in;
	color: #42005f;
	background: #fff;
	padding: 12px 32px;
	font-weight: 600;
	border: 2px solid #42005f;
	border-radius: 12px;
	gap: 12px;
	font-size: 16px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: max-content;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.s-grid__product-link:hover {
	box-shadow: rgba(154, 0, 247, .1), 0 4px 6px -4px rgba(154, 0, 247, .1);
	color: rgb(154 0 247);
	border-color: rgb(154 0 247);
	transform: scale(1.05);
	background-color: #fff;
}

/* small grid */

.small-img {
	width: 100%;
  max-width: 40px !important;
  max-height: 40px !important;
}

.s-grid__product-title.small {
	font-size: 16px;
}

.s-grid__product-text.small {
	font-size: 14px;
}

.s-grid__product-link.small {
	padding: 8px 16px;
}

.s-grid__used, .s-grid__tools {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}

/* SLIDER */

.s-grid__tools {
	gap: 24px;
	position: relative;
}

.s-grid__slider-page {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px;
}

.s-grid__list>div {
	display: none;
}

.s-grid__list>div.active {
	display: grid;
}

.s-grid__slider-page {
	display: none;
}

.s-grid__slider-page.active {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 24px;
}

.slider-btn-prev.disabled,
.slider-btn-next.disabled {
	opacity: .4;
	pointer-events: none;
	cursor: not-allowed;
}

.slider-btn-prev,
.slider-btn-next {
	border: 1px solid rgb(154 0 247);
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	cursor: pointer;
	z-index: 22;
}

.slider-btn-prev svg,
.slider-btn-next svg {
	width: auto;
	stroke: rgb(154, 0, 247);

}

.slider-btn-prev:hover,
.slider-btn-next:hover {
	background: rgb(154, 0, 247);
}

.slider-btn-prev:hover svg,
.slider-btn-next:hover svg {
	stroke: #fff;
}

.slider-btn-prev.active {
	background: #8e2de2;
	color: #fff;
}

.s-grid__pag-bullet {
	display: flex;
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.slider-btn-prev {
	position: absolute;
	top: 50%;
	left: -15px;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
}

.slider-btn-next {
	position: absolute;
	top: 50%;
	right: -15px;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
}

.s-grid__tools-nav {
	position: absolute;
	width: 100%;
	inset: 0;
}

.s-grid__pagination {
	display: flex;
	flex-flow: row;
	justify-content: center;
	align-items: center;
	width: 100%;
	position: absolute;
	bottom: -70px;
	gap: 8px;
}

.s-grid__pag-text {
	color: rgb(107 114 128);
	font-size: 14px;
	line-height: 20px;
}

.s-grid__pag-bullet {
	display: flex;
	width: 40px;
	height: 40px;
	justify-content: center;
	align-items: center;
	line-height: 1;
	color: rgb(5 10 35);
	font-size: 16px;
	background: #fff;
	transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
	font-weight: 600;
	border-radius: 9999px;
	border: 2px solid rgb(229 231 235);
	cursor: pointer;
}

.s-grid__pag-bullet.active {
	border: 1px solid rgb(154 0 247);
	transition: all .3s cubic-bezier(.4, 0, .2, 1);
	background: rgb(154 0 247);
	color: #fff;
}

.s-grid__pag-bullet:hover {

	border: 1px solid rgb(154 0 247);
	color: rgb(154 0 247);
}

.s-grid__pag-bullet.active:hover {
	border: 1px solid rgb(154 0 247);
	color: #fff;
}

@media (width <= 1280px) {
  .s-grid__slider-page {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.s-grid__used,
	.s-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));

	}
}

@media (width <=1024px) {
	.s-grid__slider-page {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (width <=768px) {

	.s-grid__used,
	.s-grid__products {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	.s-grid__slider-page {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
 @media (width <=479px) {
	.s-grid,
	.s-demo,
	.s-banner,
	.s-cards,
	.s-text-image {
		padding: 60px 0;
	}

	.s-grid__title,
	.s-demo__title,
	.s-banner__title,
	.s-cards__title,
	.s-text-image__title {
		font-size: 32px;
	}

	.s-grid__text,
	.s-demo__text,
	.s-cards__subtitle,
	.s-text-image__text {
		font-size: 16px;
	}


	.s-grid__btn {
		width: 100%;
		justify-content: center;
	}


	.s-grid__btn-list {
		gap: 10px;
	}

	.s-grid__btn {
		font-size: 13px;
		padding: 12px 16px;
		text-wrap: nowrap;
	}

}
