/* Brand refresh: desktop catalog menu, native home hero and site footer. */

/* Header catalog trigger follows the same strong, rounded visual language as the primary CTA. */
.catalog-btn {
	width: 168px;
	height: 46px;
	min-height: 46px;
	gap: 14px;
	border-radius: 15px;
	background: linear-gradient(135deg, #7756ff 0%, #623bfa 62%, #5833e9 100%);
	box-shadow: 0 10px 22px rgba(98, 59, 250, 0.2);
}

.catalog-btn:hover,
.catalog-btn.active {
	background: linear-gradient(135deg, #8568ff 0%, #6c4cff 60%, #4f2bdc 100%);
}

.catalog-btn__icon {
	display: grid;
	width: 28px;
	height: 28px;
	flex: 0 0 28px;
	place-items: center;
	margin-right: 0;
	color: #fff;
}

.catalog-btn__icon svg {
	width: 28px;
	height: 28px;
}

.catalog-btn__text {
	top: 0;
	font-size: 17px;
	line-height: 1;
}

/* Keep desktop catalog labels readable on one line. */
@media (min-width: 1025px) {
	.catalog__nav.active {
		width: min(1120px, calc(100vw - 40px));
	}

	.catalog-nav__parent-row {
		padding-inline: 16px;
	}

	.catalog-nav__parent-link {
		min-width: 0;
		padding: 15px 10px;
	}

	.catalog-nav__parent-text,
	.catalog-nav__children-title,
	.catalog-nav__child-link {
		white-space: nowrap;
	}

	.catalog-nav__toggle-btn {
		width: 40px;
		min-width: 40px;
	}

	.catalog-nav__children-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px 24px;
	}

	.catalog-nav__child-link {
		font-size: 14px;
	}
}

/* Native hero: the PNG is decorative, while every meaningful element is HTML. */
.home-hero {
	padding-top: 8px;
}

.home-hero__grid {
	position: relative;
	min-height: 500px;
	align-items: center;
	overflow: hidden;
	border: 1px solid rgba(108, 76, 255, 0.13);
	border-radius: 32px;
	background:
		radial-gradient(circle at 88% 14%, rgba(61, 156, 255, 0.18), transparent 32%),
		radial-gradient(circle at 72% 100%, rgba(108, 76, 255, 0.2), transparent 40%),
		linear-gradient(135deg, #fbfaff 0%, #f5f2ff 54%, #eff5ff 100%);
	box-shadow: 0 24px 70px rgba(40, 27, 85, 0.09);
}

.home-hero__content {
	position: relative;
	z-index: 2;
	grid-column: 1 / span 6;
	padding: clamp(48px, 6vw, 82px) 0 clamp(48px, 6vw, 82px) clamp(36px, 5vw, 72px);
	text-align: left;
}

.home-hero__eyebrow {
	margin-bottom: 18px;
	padding: 7px 13px;
	border: 1px solid rgba(108, 76, 255, 0.14);
	background: rgba(255, 255, 255, 0.78);
}

.home-hero__title {
	max-width: 610px;
	font-size: clamp(42px, 4.6vw, 66px);
}

.home-hero__text {
	max-width: 550px;
	font-size: clamp(16px, 1.35vw, 19px);
}

.home-hero__actions {
	justify-content: flex-start;
	margin-top: 30px;
}

.home-hero__button--primary {
	min-height: 58px;
	min-width: 228px;
	justify-content: space-between;
	padding: 0 12px 0 24px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #815cff 0%, #623bfa 58%, #4c2de0 100%);
	box-shadow: 0 16px 34px rgba(98, 59, 250, 0.35);
	font-size: 15px;
	font-weight: 800;
}

.home-hero__button--primary i {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.18);
	font-style: normal;
	font-size: 19px;
}

.home-hero__button--primary:hover,
.home-hero__button--primary:focus-visible {
	background: linear-gradient(135deg, #8c6bff 0%, #6c4cff 58%, #5532e9 100%);
	box-shadow: 0 20px 40px rgba(98, 59, 250, 0.42);
}

.home-hero__visual {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: block;
	min-height: 0;
	grid-column: auto;
	padding: 0;
	pointer-events: none;
}

.home-hero__visual::before {
	display: none;
}

.home-hero__visual::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(251, 250, 255, 0.96) 0%, rgba(251, 250, 255, 0.84) 35%, rgba(251, 250, 255, 0.2) 55%, rgba(251, 250, 255, 0) 70%);
}

.home-hero__picture,
.home-hero__picture img {
	display: block;
	width: 100%;
	height: 100%;
}

.home-hero__picture {
	position: absolute;
	inset: 0;
}

.home-hero__picture img {
	object-fit: cover;
	object-position: center;
	filter: none;
}

.home-hero__note {
	max-width: none;
	white-space: nowrap;
}

/* Native editorial covers keep the same crop everywhere they are reused. */
.useful-articles__list .item-posts__link,
.category-posts .item-posts__link,
.aside-posts .item-posts__link,
.related-posts__list .item-posts__link {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 20px 20px 0 0;
	background: linear-gradient(135deg, #f5f2ff, #eef5ff);
}

.useful-articles__list .item-posts__thumb,
.category-posts .item-posts__thumb,
.aside-posts .item-posts__thumb,
.related-posts__list .item-posts__thumb {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: 0;
	object-fit: cover;
	object-position: center;
}

/* Product and distribution review forms use the same component language. */
.product-reviews__form {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 4vw, 38px);
	border: 1px solid rgba(108, 76, 255, 0.16);
	border-radius: 24px;
	background:
		radial-gradient(circle at 100% 0, rgba(108, 76, 255, 0.12), transparent 34%),
		linear-gradient(145deg, #fff 0%, #faf8ff 100%);
	box-shadow: 0 18px 46px rgba(45, 34, 104, 0.08);
}

.product-reviews__form-title {
	color: #141126;
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -0.025em;
}

.product-reviews__form-subtitle {
	max-width: 720px;
	color: #73788b;
	font-size: 14px;
	line-height: 1.55;
}

.product-reviews__form label {
	color: #231d3d;
	font-size: 13px;
	font-weight: 750;
}

.product-reviews__form input[type="text"],
.product-reviews__form input[type="email"],
.product-reviews__form select,
.product-reviews__form textarea {
	box-sizing: border-box;
	min-height: 54px;
	border: 1px solid #ded9ef;
	border-radius: 15px;
	background: rgba(255, 255, 255, 0.94);
	color: #171322;
	font: inherit;
}

.product-reviews__form textarea {
	min-height: 164px;
}

.product-reviews__submit {
	display: inline-flex;
	min-height: 56px;
	align-items: center;
	justify-content: center;
	padding: 0 30px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, #815cff 0%, #623bfa 58%, #4c2de0 100%);
	box-shadow: 0 14px 30px rgba(98, 59, 250, 0.28);
	font-size: 15px;
	font-weight: 800;
}

.product-reviews__submit:hover,
.product-reviews__submit:focus-visible {
	background: linear-gradient(135deg, #8c6bff 0%, #6c4cff 58%, #5532e9 100%);
	box-shadow: 0 18px 34px rgba(98, 59, 250, 0.36);
	transform: translateY(-1px);
}

/* Footer: clear hierarchy, stronger brand contrast and comfortable targets. */
.footer {
	position: relative;
	overflow: hidden;
	color: rgba(255, 255, 255, 0.78);
	background:
		radial-gradient(circle at 12% 10%, rgba(108, 76, 255, 0.38), transparent 28%),
		radial-gradient(circle at 88% 90%, rgba(61, 156, 255, 0.14), transparent 30%),
		#20163f;
}

.footer::before {
	content: '';
	position: absolute;
	top: -210px;
	right: -160px;
	width: 440px;
	height: 440px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	pointer-events: none;
}

.footer__main {
	padding: 68px 0 54px;
}

.footer__grid {
	align-items: start;
}

.footer__col {
	grid-column: span 2;
}

.footer__col_info {
	grid-column: span 6;
	max-width: 500px;
	justify-content: flex-start;
}

.footer__logo {
	margin: 0 0 22px;
	padding: 0;
}

.footer__description {
	max-width: 470px;
	margin: 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 15px;
	line-height: 1.65;
}

.footer__contacts {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 24px;
	margin-top: 26px;
}

.footer .footer__tel {
	color: #fff;
	font-size: clamp(19px, 1.7vw, 24px);
	font-weight: 750;
	line-height: 1.2;
}

.footer .footer__telegram {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	gap: 14px;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.footer .footer__telegram:hover,
.footer .footer__telegram:focus-visible {
	border-color: rgba(255, 255, 255, 0.32);
	color: #fff;
	background: rgba(108, 76, 255, 0.5);
}

.footer__work {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 20px;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.48);
	font-size: 12px;
	line-height: 1.5;
}

.footer .extra-nav__title {
	margin: 3px 0 18px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
}

.footer .extra-nav__list {
	display: grid;
	gap: 11px;
}

.footer .extra-nav__link {
	color: rgba(255, 255, 255, 0.62);
	font-size: 13px;
	line-height: 1.45;
	text-decoration: none;
}

.footer .extra-nav__link:hover,
.footer .extra-nav__link:focus-visible {
	color: #fff;
}

.footer__bar {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(8, 5, 24, 0.24);
}

.footer__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px 28px;
}

.footer__copyright,
.footer__docs {
	width: auto;
	grid-column: auto;
}

.footer__copyright {
	color: rgba(255, 255, 255, 0.48);
	font-size: 12px;
}

.footer .docs__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.footer .docs__item {
	margin: 0;
}

.footer .docs__link {
	color: rgba(255, 255, 255, 0.52);
	font-size: 11px;
}

.footer__developer {
	display: inline-flex;
	align-items: baseline;
	gap: 7px;
	margin-left: auto;
	padding: 8px 11px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.56) !important;
	font-size: 10px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.footer__developer strong {
	color: #bcaeff;
	font-size: 12px;
	letter-spacing: 0.06em;
}

.footer__developer:hover,
.footer__developer:focus-visible {
	border-color: rgba(188, 174, 255, 0.5);
	color: #fff !important;
}

@media (max-width: 1100px) {
	.home-hero__grid {
		min-height: 440px;
	}

	.home-hero__content {
		grid-column: 1 / span 7;
		padding-left: 42px;
	}

	.home-hero__visual {
		inset: 0;
		min-height: 0;
		grid-column: auto;
		padding: 0;
	}

	.home-hero__visual::after {
		background: linear-gradient(90deg, rgba(251, 250, 255, 0.98) 0%, rgba(251, 250, 255, 0.94) 42%, rgba(251, 250, 255, 0.58) 58%, rgba(251, 250, 255, 0) 78%);
	}

	.footer__col_info {
		grid-column: span 5;
	}

	.footer__col {
		grid-column: span 2;
	}

	.footer__col:last-child {
		grid-column: span 3;
	}

	.footer__bar-inner {
		flex-wrap: wrap;
	}

	.footer__docs {
		order: 3;
		flex: 1 0 100%;
	}
}

@media (max-width: 820px) {
	.footer__main {
		padding: 48px 0 38px;
	}

	.footer__col_info {
		max-width: none;
		grid-column: 1 / -1;
		margin-bottom: 22px;
	}

	.footer__col,
	.footer__col:last-child {
		grid-column: span 4;
		margin-top: 0;
	}
}

@media (max-width: 575px) {
	/* Every home block must fit the viewport without relying on clipped overflow. */
	.home-main,
	.home-main > section,
	.shop-cats__list,
	.products-block__grid,
	.home-main .products-block__grid,
	.home-main .products-block__grid.recommend-products__grid {
		min-width: 0;
		max-width: 100%;
	}

	.shop-cats__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shop-cats__item,
	.catalog-card,
	.home-main .catalog-card {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.products-block__grid,
	.products-block__grid.recommend-products__grid,
	.home-main .products-block__grid,
	.home-main .products-block__grid.recommend-products__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer__main {
		padding: 42px 0 32px;
	}

	.footer__col,
	.footer__col:last-child {
		grid-column: 1 / -1;
		margin-top: 26px;
	}

	.footer__col_info {
		margin: 0;
	}

	.footer__contacts {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer__work {
		flex-direction: column;
	}

	.footer__bar-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer__docs {
		order: initial;
	}

	.footer .docs__list {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer__developer {
		margin-left: 0;
	}
}
